ubuntu logo

Basic linux firewall commands

August 3rd, 2015 No comments
sudo ufw status

confirm if firewall is running.  This command displays whether the ufw firewall is running and it also lists the active rules

sudo ufw enable

enable the firewall and also force it to load from system start

sudo ufw disable

disable the firewall and disable it from loading from system start


Stop the postix server from the command line

August 2nd, 2015 No comments

After an ubuntu upgrade, I detected lots of activity going on postfix.

I did not want to disrupt other ongoing web activity so I decided to temporarily shut down the postfix server with the following command:

sudo postfix stop

Counting lines from a text document in Ubuntu

April 22nd, 2015 No comments

In order to count lines from a document in the command line, use the following command

wc -l <mytextfile>


wc -l myfile.txt