Last active
December 14, 2015 04:29
-
-
Save th3hamburgler/5028992 to your computer and use it in GitHub Desktop.
List of useful terminal commands
This file contains hidden or 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
# list files in directory including hidden | |
ls -f | |
# Remove all files and directories (recursive removal) | |
rm -rf /tmp/foo | |
# copy the contents of file to clipboard (location: ~/.ssh/id_rsa.pub) | |
cat ~/.ssh/id_rsa.pub | pbcopy | |
# add public key to fortrabbit server (remove all new lines) | |
nano -c ~/.ssh/authorized_keys | |
# Show disk space of given directory | |
du -h -s images | |
# Show system space | |
df -h | |
# Show directories taking up the most space | |
du -sh /* | sort -n | |
# Change permissions of directory | |
chmod -R 777 app/storage/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment