*Nix Admin Cheatsheet

These commands are mainly around Debian based systems

Adding a New User

sudo adduser
Adding user to Sudoers
sudo visudo

Then add your newuser name below the root entry like so

newuser ALL=(ALL:ALL) ALL
IPTables Persistent

IPTables doesn't tend to restore it settings by default, you usually have to use and application to re-apply the settings are bootup.

sudo apt-get install iptables-persistent
IPTables Commands

Lists the current IPTables settings

    sudo iptables -S