Multiple choice technology operating systems

Output of "echo $$"

  1. $$
  2. $
  3. Process ID of the current session.

  4. Process ID of the parent session

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Unix and Linux shells, the special shell parameter $$ expands to the process ID (PID) of the current shell session. It does not output literal characters, nor does it represent the parent process ID, which is retrieved using the $PPID variable.