Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What types of advisory services are available from the SBA?

Answered: 1 week ago