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.


28 visits (3 today, 3 this week, 17 this month, 28 this year)
Uptime: 09:10:11 up 5 days, 13:00, 3 users, load average: 0.00, 0.01, 0.00
216.73.216.34 GET from server z.larrymurakami.com

Sunday, August 10, 2025 @ 9:10:11 AM
z.ServerAdmin@lam1.us