You need to locate the PID of a process in the process table so that the process
ID: 3693367 • Letter: Y
Question
You need to locate the PID of a process in the process table so that the process can be killed. On the system, construct a command string that will locate ONLY the PID of the process calledinit.
The output of your command string should be a single number which is the PID of the init process.
Replace the ## to complete the comand string. The comand string must generate the output described above.
ps -ef | grep init | grep -v 'grep' | awk '{ print ## }'
Enter only the characters in your answer below.
Explanation / Answer
ps -ef | grep init | grep -v 'grep' | awk '{print $2}'
by running above command we will get only the PID of init.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.