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.


109 visits (2 today, 9 this week, 27 this month, 109 this year)
Uptime: 17:14:36 up 9:45, 1 user, load average: 0.00, 0.00, 0.00
13.59.225.234 GET from server z.lamurakami.com

Wednesday, September 18, 2024 @ 5:14:36 PM
z.ServerAdmin@lam1.us