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.


73 visits (2 today, 7 this week, 14 this month, 73 this year)
Uptime: 15:39:35 up 21:27, 3 users, load average: 0.10, 0.25, 0.38
216.73.216.248 GET from server z.lam1.us

Saturday, November 14, 2026 @ 3:39:35 PM
z.ServerAdmin@lamurakami.com