Last active
January 1, 2016 11:19
-
-
Save amycheng/8137221 to your computer and use it in GitHub Desktop.
Useful Shell commands because I always have to google them!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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