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.


31 visits (3 today, 3 this week, 28 this month, 31 this year)
Uptime: 08:39:54 up 16:19, 2 users, load average: 0.00, 0.01, 0.00
216.73.216.66 GET from server z.larryforalaska.com

Wednesday, July 22, 2026 @ 8:39:54 AM
z.ServerAdmin@lamurakami.com