exam questions

Exam 102-500 All Questions

View all questions & answers for the 102-500 exam

Exam 102-500 topic 1 question 41 discussion

Actual exam question from LPI's 102-500
Question #: 41
Topic #: 1
[All 102-500 Questions]

What information is provided by the echo $$ command?

  • A. The process ID of the current shell.
  • B. The process ID for the following command.
  • C. The process ID of the last command executed.
  • D. The process ID of the last command which has been placed in the background.
  • E. The process ID of the echo command.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Roger95
Highly Voted 1 year, 6 months ago
Selected Answer: A
[root@rhel8-02 ~]# ps -p `echo $$` PID TTY TIME CMD 1837 pts/0 00:00:00 bash
upvoted 7 times
...
blk_542
Most Recent 2 days, 23 hours ago
Selected Answer: A
To prove it: ps aux | grep bash and compare it with previous echo $$
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago