linux firewall-cmd --get-default-zone code example
Example 1: firewall-cmd status
# firewall-cmd --state
Example 2: firewall cmd add zone
firewall-cmd --permanent --new-zone [zone]
# firewall-cmd --state
firewall-cmd --permanent --new-zone [zone]