Question: Write a bash script named hw13-5 displays the total number of users who have attached processes. An attached process is one with an assigned TTY
Write a bash script named hw13-5 displays the total number of users who have attached processes. An "attached process" is one with an assigned TTY number (Field 12 of the ps -l output). Include each userid only one time in the total (since they may be logged in more than one time).
SAMPLE COMMAND AND OUTPUT: >hw13-5 20 Users have attached processes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
