Recap: System Checkup
Chapter 8 was about the system itself: which programs are running, stopping one, how much disk is used, and when things happened.
When something goes wrong on a real machine, this is where you start looking.
Mission: System Health Inspection
The station is approaching a debris field, and the captain wants a systems check on file before entry. Check how much disk space the station has left, then write inspection.txt:
- the date and time of the inspection, on the first line;
- the process lines of the reactor monitor and of life support, to prove both are running;
- how much room the
logsfolder takes, in all and readable at a glance, on the last line.
Every line comes straight from the system, not typed by hand.
Expected result
inspection.txt opens with the timestamp, shows the reactor monitor and life support running, and ends with the size of logs.