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 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 sshdpid.
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 sshdpid to the command.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
