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.


28 visits (2 today, 2 this week, 21 this month, 28 this year)
Uptime: 15:52:08 up 3 days, 5:35, 1 user, load average: 0.00, 0.00, 0.00
216.73.217.130 GET from server z.lam1.us

Sunday, August 23, 2026 @ 3:52:08 PM
z.ServerAdmin@lamurakami.com