PrepAway - Latest Free Exam Questions & Answers

Which of the following commands can be used by a user to display the list of contents existing in his current

Which of the following commands can be used by a user to display the list of contents existing in
his current user account?
Each correct answer represents a complete solution. Choose all that apply.

PrepAway - Latest Free Exam Questions & Answers

A.
echo *

B.
ls ~

C.
ls *

D.
pwd

Explanation:

The ls ~ and echo * commands can be used by a user to display the list of contents existing in his
current user account. While ~ forces a command to perform queries in the user’s home directory,
ls displays the contents of the home directory.


Leave a Reply