Backup your files first

A quick tip .. I always make a copy of my configuration files in Linux whenever I make changes. It only takes typing a line or two on the command line. I use the following copy command to backup files.

[root@pc ~]# cp /etc/file.conf /etc/file.conf.backup

This will make file.conf.backup with the same contents as file.conf. And whenever you want to restore the original file .. use the following command:

[root@pc ~]# cp /etc/file.conf .backup /etc/file.conf

This will save you from undesirable conditions if you mess up with some configuration.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: