Deal of The Day! 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
11 days 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
15 days 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
...
Ayesha
18 days 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
23 days 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
Jerry
5 days ago
Yeah, it's a handy command to have in your shell scripting toolkit.
upvoted 0 times
...
Herman
17 days ago
I always use echo $$ to get the process ID of the current shell.
upvoted 0 times
...
...
Veronica
27 days ago
I remember learning that it's B) The process ID for the following command.
upvoted 0 times
...
Ceola
29 days 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
30 days ago
I believe it's C) The process ID of the last command executed.
upvoted 0 times
...
Teresita
2 months ago
I think the answer is A) The process ID of the current shell.
upvoted 0 times
...

Save Cancel