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.


88 visits (1 today, 1 this week, 40 this month, 88 this year)
Uptime: 16:56:09 up 22:25, 37 users, load average: 20.54, 19.41, 17.19
216.73.216.134 GET from server z.lamurakami.com

Monday, November 30, 2026 @ 4:56:09 PM
z.ServerAdmin@lamurakami.com