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 010-160 Exam - Topic 5 Question 65 Discussion

Actual exam question for LPI's 010-160 exam
Question #: 65
Topic #: 5
[All 010-160 Questions]

Which of the following commands shows the absolute path to the current working directory?

Show Suggested Answer Hide Answer
Suggested Answer: C

The command pwd stands for ''print working directory''. It will print the absolute path of the current working directory to the terminal.For example, if we are currently in the /home/user/directory, it will print out that exact path1.The pwd command is useful for finding out where we are in the file system hierarchy and for verifying the location of files and directories2.

The other options are not commands that show the absolute path to the current working directory.The who command shows the users who are currently logged in to the system3.The cd ... command changes the current working directory to the parent directory of the current one2.The ls -l command lists the files and directories in the current working directory in a long format, which shows the permissions, ownership, size, date, and name of each file and directory2.The cd ~/home command changes the current working directory to the /home directory under the user's home directory, which may or may not exist2.Reference:

Linux Essentials Exam Objectives, Version 1.6, Topic 103.1, Weight 2

Linux Essentials Certification Guide, Chapter 3, Page 51-52

How to Get the current directory in Linux- howtouselinux

How To Find The Absolute Path Of A File Or Directory In Linux- systranbox


Contribute your Thoughts:

0/2000 characters
Tiara
17 days ago
I’m a bit confused; I thought "cd .." was related to directories, but I can't recall if it shows the path.
upvoted 0 times
...
Vicente
22 days ago
I remember practicing with similar questions, and "pwd" definitely stands out as the command for the current working directory.
upvoted 0 times
...
Kindra
28 days ago
I think the command we're looking for is "pwd," but I'm not entirely sure if it's the only one that shows the absolute path.
upvoted 0 times
...

Save Cancel