Skip to content

Instantly share code, notes, and snippets.

@amycheng
Last active Jan 1, 2016
Embed
What would you like to do?
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