Preliminary Exercises

2.2. Preliminary Exercises

  1. System administrators often write scripts to automate common tasks. Give several instances where such scripts would be useful.

  2. Write a script that upon invocation shows the time and date, lists all logged-in users, and gives the system uptime. The script then saves this information to a logfile.


68 visits (3 today, 8 this week, 25 this month, 68 this year)
Uptime: 19:40:23 up 1 day, 9:23, 2 users, load average: 0.00, 0.00, 0.00
216.73.216.64 GET from server z.lamurakami.com

Friday, August 21, 2026 @ 7:40:23 PM
z.ServerAdmin@lamurakami.com