check what firewall in runnign linux code example Example: firewall status on ubuntu $ sudo ufw status [sudo] password for linuxconfig: Status: inactive