disable a ufw service code example
Example 1: disable ufw
$ sudo ufw disable
Firewall stopped and disabled on system startup
Example 2: disable ufw
$ sudo ufw status
Status: inactive
$ sudo ufw disable
Firewall stopped and disabled on system startup
$ sudo ufw status
Status: inactive