102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 41


What information is provided by the echo $$ command?

Show Answer
Correct Answer: A

The echo $$ command provides the process ID of the current shell. This is because the $$ variable in Unix-like systems refers to the process ID of the currently running shell instance.

Discussion

2 comments
Sign in to comment
Roger95Option: A
Nov 20, 2021

[root@rhel8-02 ~]# ps -p `echo $$` PID TTY TIME CMD 1837 pts/0 00:00:00 bash

blk_542Option: A
Jun 9, 2023

To prove it: ps aux | grep bash and compare it with previous echo $$