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.


43 visits (2 today, 6 this week, 25 this month, 43 this year)
Uptime: 17:06:51 up 9:11, 2 users, load average: 0.00, 0.00, 0.00
216.73.216.209 GET from server z.lamurakami.com

Thursday, May 14, 2026 @ 5:06:51 PM
z.ServerAdmin@lamurakami.com