Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote