Skip to content

Instantly share code, notes, and snippets.

@tidalgo22
Created September 11, 2017 06:33
Show Gist options
  • Save tidalgo22/1d339fa8fbf5be829078dcf2c49877e8 to your computer and use it in GitHub Desktop.
Save tidalgo22/1d339fa8fbf5be829078dcf2c49877e8 to your computer and use it in GitHub Desktop.
Ubuntu Command List
mkdir myfolder - create folder
rm -rf mydir - In the above example, the "mydir" directory, along with all files and directories within that directory, would be deleted with no prompt or message.
sudo kill `sudo lsof -t -i:9001` - kill the running instance on a port.
sudo chmod 770 -r /var/www/subdir - make a folder writeable.
Ubuntu References:
Firewall - https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment