Welcome to the Linux Foundation Forum!

Doubt regarding Knowledge Check 12.2

Posts: 8

Knowledge Check 12.2 asks which command will show the parent process IDs (PPIDs) for all the processes on the system. This question gives four possible options and marks only option 4 as the correct one:
1) ps aux
2) ps elf
3) ps-aux
4) ps -elf

I would like to know why multiple options are not possible if option 2 (ps elf) also shows the PPID of all the running processes. Why only option 4) is the correct answer?

Thanks

Comments

  • Posts: 916

    ps -elf shows all processes on the system. ps elf (no dash) shows only those running under the current shell, terminal window

  • Posts: 8

    Ohh, that makes sense. Thank you!

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training