How To Start/Restart/Stop iptables and auto start at boot

October 9, 2009 · Filed Under Linux Commands · 1 Comment 

You can use the following commands to start/restart/stop iptables on your Linux server:

To start iptables:
service iptables start

To stop iptables:
service iptables stop

To restart iptables:
service iptables restart

You can determine whether iptables is running or not using following command:

service iptables status

You can also configured iptables to start automatically on boot. You will need to use chkconfig command to turn it on:

chkconfig iptables on

To use above commands, you will need the root access of your server.

Kailash

Create a tar archive

May 3, 2009 · Filed Under Linux Commands · 1 Comment 

Sometime, you may need to move some large folder from one server to another or you may require to take backup of user’s home directory. On Linux platform, you can use command tar to create an archive of the folder.

For example, if you want to create an archive for /home/user1 folder then use the following command:

tar -pczf user1.tar.gz /home/user1

For more options, you may refer the manual of this command. Use following command to get the details about all options:

man tar

Untitled Document