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.


47 visits (1 today, 1 this week, 42 this month, 47 this year)
Uptime: 05:29:59 up 17:58, 3 users, load average: 0.00, 0.01, 0.00
216.73.216.80 GET from server z.larryforalaska.com

Sunday, October 26, 2025 @ 5:29:59 AM
z.ServerAdmin@lam1.us