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.


49 visits (1 today, 1 this week, 39 this month, 49 this year)
Uptime: 03:14:59 up 22 days, 4:26, 3 users, load average: 0.11, 0.09, 0.09
216.73.217.139 GET from server z.lam1.us

Sunday, October 25, 2026 @ 3:14:59 AM
z.ServerAdmin@lamurakami.com