We would like to have our own handy tool to monitor the system. Often we determine free space on the root disk drive, find the number of processes and find out if it works or does not work internet.
For this purpose, create script system-watch.sh. This script will able to:
If a user does not select one, or if a user enters a different option than the abovementioned program displays help.
Hint: To test the availability of the Internet, use ping. #man ping command will find that the ping option c can reduce the number of pinging.
For solving the problem follow these steps:
We prepared for you video course Marian's BASH Video Training: Mastering Unix Shell, if you would like to get much more information.
Thank you. Marian Knezek