Question: Display running processes Processes are instances of running code. Sysadmins can display and manipulate running processes using commands such as ps and pgrep. Remain logged

Display running processes
Processes are instances of running code. Sysadmins can display and manipulate running processes using commands such as ps and pgrep.
Remain logged in as the root user on the CentOS 9 Stream (CLI)- Applied Labs VM.
List only the processes running in your current shell.
Expand this content if you need help:
Check the man pages for ps and pgrep
List all the processes running on the system and use grep to filter for the sshd process.
Display the process ID numbers for the secure shell daemon (sshd), and then redirect the results to a file named sshd.pid.
Expand this content if you need help:
Check the man pages for ps to discover the option to list all processes, then add | grep sshd >> sshd.pid to the command.

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 Programming Questions!