Fill in the functionality of the skeleton script you wrote in Exercise 1 of Chapter 7, “The Korn Shell,” so that it will perform the system administration tasks in your menu-driven interface.

Useful tasks to automate include:
• automatic deletion of core files
• automatic warnings to users that use a lot of CPU time or disk space
• automatic archiving

Use the find command to find all core files in a file system. Use ps to examine CPU usage. Use
the du command to determine the amount of disk space used by a particular user’s home directory
(you will need to be running as super-user to read another user’s home directory, although you can
test your script on your own directory). Use the find command to find files that are older than a
certain amount of time that are candidates for archival.

Computer Science & Information Technology

You might also like to view...

The ________ feature guesses at what values you want entered based on previous column entries

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is NOT shown in an amortization table?

A) Interest payments over the life of the loan B) Remaining balance of the loan C) Interest rate for each payment D) Principal payments over the life of the loan

Computer Science & Information Technology