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.


187 visits (1 today, 5 this week, 1 this month, 187 this year)
Uptime: 02:36:11 up 8:04, 4 users, load average: 0.00, 0.00, 0.00
216.73.216.51 GET from server z.larrymurakami.com

Tuesday, July 1, 2025 @ 2:36:11 AM
z.ServerAdmin@lam1.us