Config File Backup

by Sanju 2009-11-03 17:29:02

Config File Backup

If you want to edit a file, and just you want to take a backup of original one before editing the file there is an easy command.

For example if you want to edit the file zzz.conf file below is the command:

# cp /etc/X11/zzz.conf{,-BACKUP}


This will create a file called zzz.conf-BACKUP in the same directory as the original.

So if disaster strikes you simply restore the backup with:

# cp /etc/X11/zzz.conf-BACKUP /etc/X11/xorg.conf

Tagged in:

915
like
0
dislike
0
mail
flag

You must LOGIN to add comments