Search Multiple Words or String Pattern

Search is the most important factor which we often used in our daily routine. Some time we need to search multiple words or string in a file, and grep provides the functionality to look into a file and search more than one words. With the combination of grep command and regular expression we can search…

Disable SeLinux in Linux

Selinux is an acronym for Security-enhanced Linux. SELinux is a Linux feature that provides the mechanism for supporting access control security policies in the Linux kernel. It is a set of kernel modifications and user-space tools. To disable SELinux temporarily run the following command on shell. $ sudo echo 0 > /selinux/enforce or you can…

How To Remove APF Firewall

APF is highly powered firewall which helps you in defining Iptable rules on your server. If you are sure to remove the APF from your system, below are the steps: Remove APF # /etc/init.d/apf stop # chkconfig apf off # rm -rf /etc/apf # rm -f /etc/rc.d/init.d/apf # rm -f /etc/logrotate.d/apf # rm -f /etc/cron.daily/apf…