Question: Using Linux Command line and terminal file editors. Consider the following situation: You are the system administrator of a server and your manager wants you
Using Linux Command line and terminal file editors.
Consider the following situation:
- You are the system administrator of a server and your manager wants you to report the following information:
- The number of users in this Linux system.
- The total number of programs running on this server.
You will have to write a script and manually run it at the end of each day, this script will save this information in a file named "Analysis". The information in the file is the following format:
- "_______________________________________"
- "Date"
- "N"
- "M"
- "_______________________________________"
Where:
- The date is the date and the time when the script was executed.
- N will be the number of users in the system,
- M is the number of Processes running currently in the system.
The script will run multiple times for a month. The script should not overwrite information in the Analysis file but append to it only.
Hints:
- Study Lab2 commands.
Submission
- Whole screen screenshot of your terminal and script next to each other. The terminal must show a sample of the script run.
- Script file ".sh" which includes your information:
- Name,
- Email,
- and submission statement: " The work in this assignment is my own, I did copy the solution. Any outside sources have been properly cited.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
