Thursday, August 15, 2013

CLI: Quick command execution

There are very handy shortcuts available on the command line , lets just list em out.


  • Execute last command
    • $ !!
    • well this feature is really useful when you want to execute last command again but with sudo privileges.
      • $ sudo !!
  • Go forward/backward command history with Ctrl+n and Ctrl+p.
  • Access the last command argument with Alt + .
  • Use reverse-i-search by pressing Ctrl+r to search the history in reverse order.

No comments:

Post a Comment