Skip to content

Instantly share code, notes, and snippets.

@amycheng
Last active January 1, 2016 11:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amycheng/8137221 to your computer and use it in GitHub Desktop.
Save amycheng/8137221 to your computer and use it in GitHub Desktop.
Useful Shell commands because I always have to google them!
# copy folders from remote to local
# use '/' for absolute directories
scp -r /path/to/source /path/to/destination
scp -r source login@address:/destination
# delete folder and files within that folder
rm -rf -- <dir-to-remove>
# delete folder contents and remake folder
rm -rfv dontDeleteMe && mkdir dontDeleteMe
# find process
ps aux | grep [process]
# end process
kill -9 [process_id]
# simple python server (requires python obvs)
python -m SimpleHTTPServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment