Last Updated: February 25, 2016
·
1.925K
· superxor

Some useful CLI tips in Linux

found them on reddit here: http://goo.gl/8j91k :

  • disown will let you disown a stopped job. Instead of 'nohup' or 'screen', you could do a Ctrl-Z, bg and then disown. Manual: http://goo.gl/v9XYW
  • fc will open the last edited command in your $EDITOR and runs the command when you save and exit the editor
  • C-x C-e will open the current unfinished command in your $EDITOR and run it when save and exit
  • Alt + . (i.e. Alt and the '.') works like !$, inserts the last argument of the previous command in the resent command.
  • - represents the previous working dir. i.e., cd /path/to/1, cd /path/to/2 and cd - should put you back in /path/to/1
  • Use less -F file for less to auto-update file, or press F when in less
  • pv is a pipe viewer, nice progress bar for your piping. good example: http://goo.gl/w4Qy3