Question
The command ps -Af will display a listing of all processes running on the same machine as you are. This includes processes being run by
The command ps -Af will display a listing of all processes running on the same machine as you are. This includes processes being run by lots of other people. Part of the information shown is the name of the command that launched the process. It also will show the login name of the account that launched that process. Try it now and examine its output.
One of the most common processes that you will see is sshd, the process that accepts an incoming ssh connection like the ones that you have opened for this assignment.
What command would you enter to get a count of the number of sshd processes running on the machine where you are logged in?
Must use ps -Af
Answer is: ps -Af | grep sshd | wc
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