Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started