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.


149 visits (1 today, 1 this week, 28 this month, 149 this year)
Uptime: 00:10:18 up 7:45, 1 user, load average: 0.00, 0.00, 0.00
216.73.217.33 GET from server z.larryforalaska.com

Sunday, May 17, 2026 @ 12:10:18 AM
z.ServerAdmin@lamurakami.com