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.


139 visits (4 today, 11 this week, 11 this month, 139 this year)
Uptime: 23:11:46 up 21 days, 6:47, 4 users, load average: 0.02, 0.01, 0.00
216.73.216.119 GET from server z.larrymurakami.com

Thursday, June 5, 2025 @ 11:11:46 PM
z.ServerAdmin@lam1.us