Some Interview Stuff
1) Define a deamon? Ans: In Unix or Other Multitasking Operating Systems a Daemon is a computer program that runs in Background, rather than under the control of a user. These are usually Intiated as Background processes.Typically Daemons have names that ends with "d" e.g. mysqld,syslogd,pptpd,sshd etc. 2.) Can we use crontab to run a script per second? if yes how? if no why? Ans: I think we can't. In crontab (the one the user can edit) the smallest timeperiod is 1 minute. The crontab deamon, which checks the crontab file, runs every 30 seconds. But we can make use of some scripting to run script after some seconds but not every second. 3)I have a file each line contains “/var/www/html”, replace this entry in all lines with “/home/xyz/red” with single command or an editor. Ans: For this make the use of sed(Stream Editor) command by using some other separator than "/". AS : #sed -i 's#/var/www/html#...