BlackFriday 2024! 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
3 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
3 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
2 months ago
I agree with you, I'll go with C. The process ID of the last command executed.
upvoted 0 times
...
Yvonne
2 months ago
I think it's A. The process ID of the current shell.
upvoted 0 times
...
...
Ayesha
3 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
3 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
2 months ago
No, it's actually A. I've used it before in my scripts.
upvoted 0 times
...
Barbra
2 months ago
I think it's B, the process ID for the following command.
upvoted 0 times
...
Kelvin
2 months ago
That's correct! It's a useful way to identify the current shell process.
upvoted 0 times
...
Kristal
2 months ago
I agree, the answer is A. It's a useful command to know.
upvoted 0 times
...
Nada
3 months ago
I think the answer is A, the process ID of the current shell.
upvoted 0 times
...
Jerry
3 months ago
Yeah, it's a handy command to have in your shell scripting toolkit.
upvoted 0 times
...
Herman
3 months ago
I always use echo $$ to get the process ID of the current shell.
upvoted 0 times
...
...
Veronica
3 months ago
I remember learning that it's B) The process ID for the following command.
upvoted 0 times
...
Ceola
3 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
4 months ago
I believe it's C) The process ID of the last command executed.
upvoted 0 times
...
Teresita
4 months ago
I think the answer is A) The process ID of the current shell.
upvoted 0 times
...

Save Cancel