You are on page 1of 1

Logging

1.
Change /etc/syslog.conf to output some of the logs to /dev/tty9 (make su
re you restart syslogd and that the output is properly redirected)
2.
Add a custom local5 item with critical priority to /ect/syslog.conf and
direct the output to /dev/tty10. Restart syslogd and use logger to write informa
tion via local5.
3. Read the /etc/rc.d/init.d/syslog script and change /etc/sysconfig/syslog to a
llow remote hosts to send log outputs.
Scheduling
4.Create a cron entry which starts xclock every 2 minutes. Remember that cron is
unaware of system variables such as PATH and DISPLAY.
5. Use at.to start xclock in the next five minutes.
Archiving
6. Use find to list all files that have been modified during the past 24 hours.
(hint: Redirect the output of find -mtime 1 to a file)
7.Use cpio to create an archive called Incremental.cpio.
(ans: Use the file created above and do cat FILE | cpio

ov > Incremental.cpio)

8 Use xargs and tar to create an archive of all files last accessed or changed 5
mins ago.
9. Do the same using the exec option to find. Note that the files listed by find
can be referenced by the {} symbol.
10. Extract the archive you have just created.

You might also like