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.


82 visits (2 today, 6 this week, 34 this month, 82 this year)
Uptime: 15:46:58 up 5 days, 21:34, 3 users, load average: 0.08, 0.11, 0.09
216.73.217.122 GET from server z.lam1.us

Thursday, November 19, 2026 @ 3:46:58 PM
z.ServerAdmin@lamurakami.com