Thursday, May 2, 2024
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 1157  / 3 Years ago, wed, july 7, 2021, 12:01:56

What does the output of the command below mean? (result is positive integer)



echo $$

More From » command-line

 Answers
5

The $$ variable in bash and other shells contains the process id of the shell.



See this Stack overflow question and this one also has more detail about what it is more precisely, and commands similar to it.


[#33112] Thursday, July 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;