Here we are trying to find out how to convert Linux man pages to PDF. Man Pages are most reliable reference available for Linux users and man command remains the easiest way to access those reference pages.
Archive for the ‘Scripting & Automation’ Category
Autoconf is a set of tools which makes your project configurable and portable for running in Linux distributions. Simply, autoconf will help you to create configure script and Makefile for your code. Before going to generate configure script using autoconf, we need to define set of rules and dependencies. We are defining that rules and dependencies in two files, configure.in and Makefile.in. Create default Makefile and keep in project directory.We can genarate the configure.in based on the rules specified in [...]
Rsync: rsync is an application used in unix systems which synchronize files and directories between two machines.rsync behaves like rcp(remote file copy),but it much faster than rcp.because rsync sends the differences in the files instead of sending entire files. Servers are SERVER_SOURCE & SERVER_DESTINATION Configure SSH key authentication In SERVER_DESTINATION open sshd_config file vi /etc/ssh/sshd_config Then verify the following entries RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys save & exit Then restart ssh daemon /etc/init.d/sshd restart Then in SERVER_SOURCE, create a [...]
cat Sends file contents to standard output.This is a way to list the contents of short files to the screen.It works well with piping. Eg:cat .bashrc (Sends content of “.bashrc” file to screen). cd Change directory eg:cd /home Change the current working directory to /home. The ‘/’ indicates relative to root, and no matter what directory you are in when you execute this command, the directory will be changed to “/home”. eg: cd .. Move to the parent directory of [...]
To edit cron jobs #crontab -e You may want to put in the following header #MINUTE(0-59) HOUR(0-23) DAYOFMONTH(1-31) MONTHOFYEAR(1-12) DAYOFWEEK(0-6) Note 0=Sun and 7=Sun # #14,15 10 * * 0 /usr/bin/somecommmand >/dev/null 2>&1 The sample “commented out command” will run at 10:14 and 10:15 every Sunday. There will be no “mail” sent to the user because of the “>/dev/null 2>&1″ entry. #crontab -l The above will list all cron jobs. Or if you’re root #crontab -l -u #crontab -e -u [...]