Linux Bash Shortcuts

preview_player
Показать описание
In this video we look at the main shortcuts that you will use in BASh. Clear the screen with cntrl + L, the start of the line centrl + a, end of the line cntrl + e , cntrl + U to delete the current line and cntrl + k to delete from the cursor position
Рекомендации по теме
Комментарии
Автор

You forgot my favorite bash she'll shortcut...
Ctrl + w deletes one space separated string @ a time, starting from the end of a command and getting closer to the prompt. Thank 4 all the great videos tup!

kjlw
Автор

Ctrl + U is also helpful when you typed a password and the password is not echoed on the screen and you want to clear the password

Here's some more:

Ctrl + left/right arrow
Move through words left or right

Alt + backspace
Delete one word at a time backwards

Esc + .
Get last parameter from previous command (my favorite)

thegripmaster
Автор

Not to forget CTRL + R to invoke "reverse-i-search." Type a letter - like s - and you'll get a match for the most recent command in your history that starts with s. Keep typing to narrow your match. When you hit the jackpot, press Enter to execute the suggested command. I use it several times a day, don't wanna miss it any more.

towesc
Автор

forgot to add:
keep hitting CTRL + R to cycle trough alternatives and also if you find a command but don't wanna execute it press the left or right arrow.

towesc
Автор

Is there a shortcut to delete just one word like dw in vim?

blacknoirschwarz
visit shbcf.ru