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.


95 visits (3 today, 3 this week, 18 this month, 95 this year)
Uptime: 16:08:00 up 1 day, 20:32, 2 users, load average: 0.01, 0.04, 0.00
216.73.216.188 GET from server z.lam1.us

Sunday, April 12, 2026 @ 4:08:00 PM
z.ServerAdmin@lamurakami.com