Cheatsheet - Bash Command Line Movements
ctrl-a – move the cursor to the beginning of the current line
ctrl-e – move the cursor to the end of the current line
alt-b – move the cursor backwards one word
alt-f – move the cursor forward one word
ctrl-k – delete from cursor to the end of the line
ctrl-u – delete from cursor to the beginning of the line
alt-d – delete the word in front of the cursor
ctrl-w – delete the word behind of the cursor
ctrl + xx in command line toggles between start and end of the line.
ctrl + ] <char> – moves cursor to 1st occurrence of <char> to right
alt + . – change command keep last argument. (Same can be achieved using !$)
!* – change command keep all arguments
Comments
Post a Comment