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.


91 visits (3 today, 12 this week, 16 this month, 91 this year)
Uptime: 22:54:19 up 6 days, 12:48, 4 users, load average: 0.10, 0.07, 0.02
3.17.179.20 GET from server z.larrymurakami.com

Thursday, May 8, 2025 @ 10:54:19 PM
z.ServerAdmin@lam1.us