LPI
010-160 · Question #68
010-160 Question #68: Real Exam Question with Answer & Explanation
The correct answer is E: 21398. Linux process IDs (PIDs) are non-negative integers assigned sequentially by the kernel. Only a plain decimal integer is a valid PID.
Question
Which of the following values could be a process ID on Linux?
Options
- A/bin/bash
- B60b503cd-019e-4300-a7be-922f074ef5ce
- C/sys/pid/9e14
- Dff3
- E21398
Explanation
Linux process IDs (PIDs) are non-negative integers assigned sequentially by the kernel. Only a plain decimal integer is a valid PID.
Common mistakes.
- A. '/bin/bash' is an absolute filesystem path to an executable, not a PID - though a running bash process would have a numeric PID.
- B. '60b503cd-019e-4300-a7be-922f074ef5ce' is a UUID (Universally Unique Identifier) format used by services like systemd units or disk partitions, not a Linux PID.
- C. '/sys/pid/9e14' is a fabricated filesystem path - Linux exposes process information under /proc/<pid> using decimal integers, not hex paths.
- D. 'ff3' is a hexadecimal value - Linux PIDs are always expressed as decimal integers, not hexadecimal.
Concept tested. Linux process ID format and valid PID values
Reference. https://man7.org/linux/man-pages/man5/proc.5.html
Community Discussion
No community discussion yet for this question.