EASY CONFIG FILE BACKUP
Here is a
neat trick, if you want to edit a file, and just to be sure you want to
make a backup of the original before you start editing the file, there
is an easy command. Let's say you want to edit the xorg.conf file ( and
you know that is a critical job ) here is the command:
| CODE |
| #
cp /etc/X11/xorg.conf{,-BACKUP} |
This
will create a file called xorg.conf-BACKUP in the same directory as the
original . . . so if disaster strikes you simply restore the backup
with:
| CODE |
| #
cp /etc/X11/xorg.conf-BACKUP /etc/X11/xorg.conf |
And all is fine again.

Bruno
-- Feb 20 2006 --