John is using a shell session that has a PID of 2700. He runs the su command to change to the root user account. The su process has a PID of 2757. He then runs vi from the shell prompt as a root user. The vi process has a PID of 2957. Which of the following is the PPID of the vi process?
  1. 2700
  2. 2757
  3. 2957
  4. 2958
Explanation
Answer - A - The PPID of the vi process is 2700.

Key Takeaway: Since the command was entered from the shell prompt, its parent process is the bash process, which has a PID of 2700.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz