UnixServerAdmin

Server Administration & Management

Commands Line Shortcuts

Here are following some tips to speed up our work.

# cmd1 ; cmd2

The above command will run cmd1 and then excute cmd2

# cmd1 && cmd2

This will execute cmd2, if cmd1 is successful.

# cmd1 || cmd2

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

May 20, 2014 Posted by | Tips & Tricks, Unix/Linux | , | Leave a comment