Advanced Bash-Scripting Guide: A complete guide to shell scripting, using Bash | ||
---|---|---|
Prev | Chapter 2. Starting Off With a Sha-Bang | Next |
System administrators often write scripts to automate common tasks. Give instances where such scripts would be useful.
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.