Last active
August 29, 2015 14:06
-
-
Save snreid/695894b9cfd1e2b2e1f4 to your computer and use it in GitHub Desktop.
Most often used Linux/Mac OSX Commands (Incomplete)
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
ls -al | |
cd | |
pwd | |
mv folder/file new-folder/ | |
sudo !! (after I’ve realized for the zillionth time I didn’t run the command as sudo) | |
cp file.txt new-folder/ | |
chown new-owner[:new-group] thisfile.txt | |
OR | |
chown -R new-owner[:new-group] thisdirectorywithlotsastuff/ | |
Rsync (always used locally) to get something from remote: | |
General Structure: rsync -a --progress [src] [destination] | |
rsync -a —progress username@server.location.com(or 123.456.78.9):/path/to/thingtodownload.txt /local/path/for/stuff/ | |
OR | |
Rsync to put something onto a remote: | |
rsync -a —progress /local/path/to/thing.txt username@server.location.com(or 123.456.78.9):/path/to/put/stuff/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment