Steps 1. Backup the configuration files using authconfig utility. The general syntax for the command is : # authconfig –savebackup=[name] For example : # authconfig –savebackup=config_backup 2. Backup’s are saved at following location: # ll /var/lib/authconfig/backup-config_backup/ total 80 -rw-r–r– 1 root root 401 Oct 28 00:18 authconfig -rw-r–r– 1 root root 1 Oct 28 00:18 […]
Archives for February 2017
UNIX / Linux : Examples of bash history command to repeat last commands
One of the extensively used command in UNIX world is the history command. Every flavor of UNIX has the history command. The bash shell stores a history of commands entered, which can be used to repeat commands by using the history command. By default, it’ll show the previous 1000 commands that were used. Here’s a […]
watch command examples to run a command repeatedly or monitor dynamically changeable files (like /proc/*)
Watch command is a really neat tool and comes in handy in many situations. The watch command can be used to monitor any file or script periodically. It runs every 2 seconds by default and it will run until interrupted. # watch -h Usage: watch [-dhntv] [–differences[=cumulative]] [–help] [–interval=[n]] [–no-title] [–version] [command] -d, –differences[=cumulative] highlight […]