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.


59 visits (1 today, 5 this week, 5 this month, 59 this year)
Uptime: 21:06:13 up 29 min, 2 users, load average: 0.04, 0.03, 0.00
216.73.216.43 GET from server z.larrymurakami.com

Friday, June 5, 2026 @ 9:06:13 PM
z.ServerAdmin@lamurakami.com