Linux Challenge #2: Real-World Log Cleanup with Command Line Automation
Welcome back, command-line champs! In this challenge, we’re simulating a real-world task every sysadmin faces: managing and cleaning up system logs. This is where your rm, mv, cp, find, and echo commands come into play in a real scenario! Challenge Brief You’ve been asked to clean up a log directory on a RHEL 9 machine. The logs are eating up space, and you need to:

Welcome back, command-line champs!
In this challenge, we’re simulating a real-world task every sysadmin faces: managing and cleaning up system logs. This is where your rm
, mv
, cp
, find
, and echo
commands come into play in a real scenario!
Challenge Brief
You’ve been asked to clean up a log directory on a RHEL 9 machine.
The logs are eating up space, and you need to: