firewall status on ubuntu

Shell
$ sudo ufw status
[sudo] password for linuxconfig: 
Status: inactive

Source

Also in Shell: