check the firewall status in linux code example
Example 1: RHEL check the firewall status
[root@rhel7 ~]# systemctl enable firewalld
Example 2: RHEL check the firewall status
[root@rhel7 ~]# systemctl disable firewalld
[root@rhel7 ~]# systemctl enable firewalld
[root@rhel7 ~]# systemctl disable firewalld