Tuesday, 6 January 2015

Command line shortcuts

Here goes some tips to speed up our work.

cmd1;cmd2

The above command will run cmd1 and then execute cmd2.

cmd1 && cmd2

This will execute cmd2 if cmd1 is successful.

cmd1 || cmd2

The above sequence will run cmd2 if cmd1 is not successful.

Ctrl+a

This will move the control to the beginning of the line in CLI.

Ctr+e

The above command will move the control to the end of the line in CLI.

!ser :p

The above command will print the last command starting with 'ser'.

No comments:

Post a Comment