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.


35 visits (2 today, 2 this week, 22 this month, 35 this year)
Uptime: 21:17:26 up 17 days, 22:29, 3 users, load average: 0.13, 0.16, 0.13
216.73.216.71 GET from server z.lamurakami.com

Tuesday, October 20, 2026 @ 9:17:26 PM
z.ServerAdmin@lamurakami.com