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

Popular posts from this blog

HOW WE REDUCED SOA OSB PROVISIONING FROM 4 DAYS TO 4 HOURS

NOT ABLE TO START RABBITMQ CLUSTER: CANNOT DECLARE A QUEUE ‘~S’ ON NODE ‘~S’: ~255P

SOA SUITE 12.2.1.4 INSTALLATION: GOT EXCEPTION WHEN AUTO CONFIGURING THE SCHEMA COMPONENT(S) WITH DATA OBTAINED FROM SHADOW TABLE