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.


24 visits (1 today, 4 this week, 19 this month, 24 this year)
Uptime: 19:00:44 up 1 day, 11:56, 2 users, load average: 0.00, 0.00, 0.00
216.73.216.42 GET from server z.larrymurakami.com

Monday, October 13, 2025 @ 7:00:44 PM
z.ServerAdmin@lam1.us