Last active
March 29, 2018 03:23
-
-
Save ncole458/7491e12ce8bb3b3fdbfef869e05c924b to your computer and use it in GitHub Desktop.
CLI commands
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
# view all running processes | |
ps aux | |
# kill a process | |
sudo kill <PID> | |
# edit SSH keys | |
cd ~/.ssh | |
nano authorized_keys | |
# open port for Postgres | |
ufw allow 5432/tcp | |
# activate virtualenv (why I forget who knows!) | |
source my_project/bin/activate | |
# perms on AWS env | |
chown -R <user> /var/www/html | |
chmod -R 755 /var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment