Skip to content

Instantly share code, notes, and snippets.

@mbadran
Created April 16, 2010 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbadran/368113 to your computer and use it in GitHub Desktop.
Save mbadran/368113 to your computer and use it in GitHub Desktop.
commandline tips
#ctrl-z
# put a process in the background
fg
# bring a background process into the foreground
tail -f filename
# follow a in real time (eg. a log file)
#ctrl-s
# suspend display on the terminal
# ctrl-q
# resume display on the terminal
cd -
# go to previous directory
> filename
# zero out a file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment