Linux Quiz #004

Logfiles galore! (Submit Answer)

Write a bash script that will compress all files named *.log in the directory “/usr/local/app/logs” that have not been accessed in the last day.

The script should only produce output if:

  • The directory does not exist
  • An error occurs compressing the file

If you need a hint, here is a good article on using find.

Leave a Reply