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.


43 visits (1 today, 8 this week, 40 this month, 43 this year)
Uptime: 22:51:47 up 5:48, 3 users, load average: 0.07, 0.03, 0.00
216.73.217.11 GET from server z.lam1.us

Friday, July 31, 2026 @ 10:51:47 PM
z.ServerAdmin@lamurakami.com