CHAPTER 9

image

Good Housekeeping: Monitoring and Tidying Up File Systems

Whether you are the system administrator or just a user, whether you have your own box or an account on a remote machine, sooner or later you will need to do some clean-up work. You will want to remove duplicate files and clean out empty files. Symbolic links are sometimes left hanging when a file is removed, so you would probably like to delete those. And, of course, you will want to keep an eye on your hard drives’ levels of usage.

9.1 dfcmp—Notify User of Major Changes in Disk Usage

Unix systems do not take kindly to running out of disk space. I have seen a computer reduced ...

Get Shell Scripting Recipes: A Problem-Solution Approach, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.