New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 102-500 Topic 11 Question 85 Discussion

Actual exam question for LPI's 102-500 exam
Question #: 85
Topic #: 11
[All 102-500 Questions]

What the echo $$ command?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Tequila
4 months ago
Wait, wait, wait... you're telling me there's an actual shell command that just prints the process ID of the current shell? That's the most useless thing I've ever heard! I'm going to go write a script that just returns the word 'banana' instead.
upvoted 0 times
...
Tegan
4 months ago
I'm going with C. The process ID of the last command executed seems like the most logical choice here. That's how I've seen this command used in the past.
upvoted 0 times
Tamekia
3 months ago
I agree with you, I'll go with C. The process ID of the last command executed.
upvoted 0 times
...
Yvonne
3 months ago
I think it's A. The process ID of the current shell.
upvoted 0 times
...
...
Ayesha
4 months ago
I think the answer is B. The process ID for the following command makes the most sense to me. Why would we want the process ID of the echo command itself?
upvoted 0 times
...
Jannette
4 months ago
The answer is clearly A. The echo $$ command returns the process ID of the current shell. It's a basic shell command that I've used many times.
upvoted 0 times
Irene
3 months ago
No, it's actually A. I've used it before in my scripts.
upvoted 0 times
...
Barbra
3 months ago
I think it's B, the process ID for the following command.
upvoted 0 times
...
Kelvin
3 months ago
That's correct! It's a useful way to identify the current shell process.
upvoted 0 times
...
Kristal
4 months ago
I agree, the answer is A. It's a useful command to know.
upvoted 0 times
...
Nada
4 months ago
I think the answer is A, the process ID of the current shell.
upvoted 0 times
...
Jerry
4 months ago
Yeah, it's a handy command to have in your shell scripting toolkit.
upvoted 0 times
...
Herman
4 months ago
I always use echo $$ to get the process ID of the current shell.
upvoted 0 times
...
...
Veronica
5 months ago
I remember learning that it's B) The process ID for the following command.
upvoted 0 times
...
Ceola
5 months ago
I'm not sure, but I think it might be D) The process ID of the last command which has been placed in the background.
upvoted 0 times
...
Britt
5 months ago
I believe it's C) The process ID of the last command executed.
upvoted 0 times
...
Teresita
5 months ago
I think the answer is A) The process ID of the current shell.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77