Log File Volume Assessment
Beginner Mode
Start your terminal to use beginner mode.
Scenario
The /var directory contains logs from multiple applications, and cleanup planning is needed. Some applications create their own subdirectories with nested log files.
Task
Find and count all files ending with the .log extension anywhere under /var including subdirectories, save the total count to /home/devops/log_count.txt, and use standard Linux commands to output only the total number of .log files found. Additionally, identify .log files larger than 512 KB and save the count to /home/devops/large_log_count.txt
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Track
| Question | Difficulty | Company | Access |
|---|
Need more practice in this area? Explore more questions →
JPMorgan