LPIC-1 Exam 102 v5 (Linux Administrator) — Question 78
What information is provided by the echo $ command?
Answer options
- A. The process ID of the current shell.
- B. The process ID for the following command.
- C. The process ID of the last command executed.
- D. The process ID of the last command which has been placed in the background.
- E. The process ID of the echo command.
Correct answer: A
Explanation
The echo $ command outputs the process ID (PID) of the current shell, which is essential for managing processes. The other options refer to PIDs of commands or actions that are not related to the current shell context, making them incorrect.