Skip to Content
Shell Scripting Recipes: A Problem-Solution Approach, Second Edition
book

Shell Scripting Recipes: A Problem-Solution Approach, Second Edition

by Chris F. A. Johnson, Jayant Varma
October 2015
Intermediate to advanced content levelIntermediate to advanced
380 pages
7h 5m
English
Apress
Content preview from Shell Scripting Recipes: A Problem-Solution Approach, Second Edition

CHAPTER 11

image

Aging, Archiving, and Deleting Files

Files grow. It’s a fact of life. There are log files in /var/log (they may be in /var/adm, or somewhere else, depending on your system). In my mail directory I have saved-messages, and sent-mail, and files for the various mailing lists I’m on. In my Chess directory, fics.pgn stores every game of chess I play online. Files in my News directory swell with my Usenet posts.

Most modern Unix systems offer a log rotation program that can be configured to suit many of your needs. Files can be rotated daily, weekly, monthly, or whenever they reach a certain size. They can be compressed or not, as you wish. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Distributed Computing in Java 9

Distributed Computing in Java 9

Raja Malleswara Rao Malleswara Rao Pattamsetti
Wicked Cool Shell Scripts, 2nd Edition

Wicked Cool Shell Scripts, 2nd Edition

Dave Taylor, Brandon Perry
Backup and Restore Practices for Sun Enterprise™ Servers

Backup and Restore Practices for Sun Enterprise™ Servers

Stan Stringfellow, Michael Barto, Miroslav Klivansky

Publisher Resources

ISBN: 9781484202203Purchase book