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…

How to Install APF Firewall In Linux Servers

APF(Advanced Policy Firewall) is a policy based Iptables firewall system designed for ease of use and configuration. The configuration of APF is quite simple and easy. Below are the steps to install APF firewall: 1. Change to tmp folder to download apf. cd /tmp 2. Download the apf tar file using wget. wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz 3.…

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…

mount umount

How to mount and unmount a drive in linux

Mounting refers to logically attaching a device/drive (such as cd drives, usb, floppy drive, hard disk, etc.) to a specified location on currently accessible filesystem(s), so that its content can be accessible. Mounting can be done with the mount command. You need to tell mount command what device or the partition needs to be mount…