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.


11 visits (1 today, 10 this week, 11 this month, 11 this year)
Uptime: 18:02:36 up 2 days, 19:13, 2 users, load average: 0.00, 0.02, 0.00
216.73.216.32 GET from server z.larrymurakami.com

Saturday, November 29, 2025 @ 6:02:36 PM
z.ServerAdmin@lam1.us