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.


19 visits (1 today, 10 this week, 19 this month, 19 this year)
Uptime: 11:31:23 up 16:10, 1 user, load average: 0.02, 0.01, 0.00
216.73.216.23 GET from server z.lamurakami.com

Friday, September 12, 2025 @ 11:31:23 AM
z.ServerAdmin@lam1.us