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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!