Question
1. Manage processes Use the ps command to get a snapshot of current running processes. i. Use ps -e to get all processes ii. Use
1. Manage processes Use the ps command to get a snapshot of current running processes.
i. Use ps -e to get all processes ii. Use ps -f to get more details iii. What is the PID of your "bash" process? What are its sub-processes? iv. Use ps -ef | grep to search for processes, e.g. sshd, apache2, init. v. How many processes are not run by the current login account? vi. Whats the root process (i.e. the first process)?
2. Monitor real-time processes (a) Use the top command to see running processes. (b) Explore more about the top command
i. Press space bar to refresh; press s to change refresh interval ii. Press c to display absolute path for commands (last column) iii. Press k to kill a process (need PID, or process id) iv. Press h for help v. Press q to quit
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