Webmaster Juice

Cheat Sheet

Save time looking up commands and how to write frequently-used code snippets.

Linux Commands

sudo touch /path/file-nameCreate an empty file
sudo ln -s existing path virtual pathCreate a symbolic link
sudo iptables -L -v --line-numbersList firewall rules
sudo service nginx restartRestart the nginx server to activate changes to server blocks
ps -eList all running processes
sudo chmod -R g+w pathRecursively add write permission to group members
sudo chown -R www-data:www-data /var/www Recursively set owner and group of website files
groups usernameCheck which groups to which a user belongs