Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 97 discussion

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

Which of the following commands print the current working directory when using a Bash shell? (Choose two.)

  • A. echo "${PWD}"
  • B. echo "${WD}"
  • C. printwd
  • D. pwd
  • E. echo "${pwd}"
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
b703161
1 month ago
Selected Answer: AD
The correct answer is A und D root@ubuntu:/home/worker1# echo "${PWD}" /home/worker1 root@ubuntu:/home/worker1# pwd /home/worker1
upvoted 1 times
...
catita3
1 year, 7 months ago
echo ${PWD} works as well
upvoted 1 times
...
Amycert
1 year, 8 months ago
Selected Answer: D
only pwd and echo $PWD would work. but pwd is the only answer provided
upvoted 1 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 ...