Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

LPI LINUX ESSENTIALS (010-160) COMPLETE EXAM PREP 125+ PRACTICE QUESTIONS COMPLETE WITH 100% CORRECT ANSWERS AND DETAILED EXPLANATIONS

Rating
-
Sold
-
Pages
58
Grade
A+
Uploaded on
29-05-2026
Written in
2025/2026

LPI LINUX ESSENTIALS (010-160) COMPLETE EXAM PREP 125+ PRACTICE QUESTIONS COMPLETE WITH 100% CORRECT ANSWERS AND DETAILED EXPLANATIONS SECTION 1: COMMAND LINE BASICS Question 1: Which command is used to search for programs in restricted locations, such as binary file directories, libraries, and man pages? A. find B. locate C. whereis D. which Correct Answer: C Explanation: The whereis command is specifically designed to locate binary files, source files, and manual pages for a given program. It searches in a restricted set of standard locations (like /bin, /sbin, /usr/bin, /usr/share/man) rather than the entire filesystem. This makes it fast but limited to program-related files. In contrast, find searches the entire filesystem but is slower, locate uses a database but finds all files, and which only finds executables in the PATH. Question 2: A user needs to quickly find all files containing the string "passwd" in their name. Which command is fastest for this task? A. find / -name "passwd" B. grep -r passwd / C. locate passwd D. whereis passwd Correct Answer: C Explanation: The locate command searches a pre-built database of all filenames on the system, which is typically updated daily by the updatedb command. This allows locate to return results almost instantly. In contrast, find must traverse the entire filesystem in real time, which can take minutes. grep searches inside files, not filenames, and whereis only searches for programs. Therefore, locate is the fastest option for finding files by name. Question 3: What command updates the system-managed database used by locate? A. updatedb B. updatelocate C. find --update D. dbupdate Correct Answer: A Explanation: The updatedb command is used to update the database that locate relies on. This database contains a list of all files and directories on the system. Typically, updatedb is run automatically once per day via a cron job. If you create new files and want locate to find them immediately, you must manually run updatedb (often with sudo) to refresh the database. Question 4: Which command displays the current working directory? A. ls B. cd C. pwd D. echo $PATH Correct Answer: C Explanation: The pwd command stands for "print working directory." When executed, it outputs the absolute path of the directory you are currently in. The ls command lists files, cd changes directories, and echo $PATH displays the system's search path for executables. None of these show your current location. Question 5: A user wants to change into their own home directory. Which two commands will accomplish this? (Choose two.) A. cd ~ B. cd / C. cd $HOME D. cd .. Correct Answers: A and C Explanation: The tilde (~) character is a shell shortcut that expands to the current user's home directory. The environment variable

Show more Read less
Institution
LPI LINUX ESSENTIALS 010-160
Course
LPI LINUX ESSENTIALS 010-160

Content preview

LPI LINUX ESSENTIALS (010-160) COMPLETE EXAM PREP 125+
PRACTICE QUESTIONS COMPLETE WITH 100% CORRECT ANSWERS
AND DETAILED EXPLANATIONS




SECTION 1: COMMAND LINE BASICS

Question 1: Which command is used to search for programs in
restricted locations, such as binary file directories, libraries, and man
pages?
A. find
B. locate
C. whereis
D. which
Correct Answer: C
Explanation: The whereis command is specifically designed to locate binary files,
source files, and manual pages for a given program. It searches in a restricted set
of standard locations (like /bin, /sbin, /usr/bin, /usr/share/man) rather than the
entire filesystem. This makes it fast but limited to program-related files. In
contrast, find searches the entire filesystem but is slower, locate uses a database
but finds all files, and which only finds executables in the PATH.




Question 2: A user needs to quickly find all files containing the string
"passwd" in their name. Which command is fastest for this task?

,A. find / -name "passwd"
B. grep -r passwd /
C. locate passwd
D. whereis passwd
Correct Answer: C
Explanation: The locate command searches a pre-built database of all filenames
on the system, which is typically updated daily by the updatedb command. This
allows locate to return results almost instantly. In contrast, find must traverse the
entire filesystem in real time, which can take minutes. grep searches inside files,
not filenames, and whereis only searches for programs. Therefore, locate is the
fastest option for finding files by name.


Question 3: What command updates the system-managed database
used by locate?
A. updatedb
B. updatelocate
C. find --update
D. dbupdate
Correct Answer: A
Explanation: The updatedb command is used to update the database that locate
relies on. This database contains a list of all files and directories on the system.
Typically, updatedb is run automatically once per day via a cron job. If you create
new files and want locate to find them immediately, you must manually run
updatedb (often with sudo) to refresh the database.




Question 4: Which command displays the current working directory?
A. ls
B. cd

,C. pwd
D. echo $PATH
Correct Answer: C
Explanation: The pwd command stands for "print working directory." When
executed, it outputs the absolute path of the directory you are currently in. The ls
command lists files, cd changes directories, and echo $PATH displays the system's
search path for executables. None of these show your current location.


Question 5: A user wants to change into their own home directory.
Which two commands will accomplish this? (Choose two.)
A. cd ~
B. cd /
C. cd $HOME
D. cd ..
Correct Answers: A and C
Explanation: The tilde (~) character is a shell shortcut that expands to the current
user's home directory. The environment
variable 𝐻𝑂𝑀𝐸𝑎𝑙𝑠𝑜𝑐𝑜𝑛𝑡𝑎𝑖𝑛𝑠𝑡ℎ𝑒𝑓𝑢𝑙𝑙𝑝𝑎𝑡ℎ𝑡𝑜𝑡ℎ𝑒ℎ𝑜𝑚𝑒𝑑𝑖𝑟𝑒𝑐𝑡𝑜𝑟𝑦. 𝐵𝑜𝑡ℎ𝑐𝑑 𝑎𝑛𝑑𝑐𝑑
HOME will take you there. The command cd / takes you to the root directory, and
cd .. moves you up one level to the parent directory.




Question 6: Which command changes the current directory to the
parent directory?
A. cd ..
B. cd .
C. cd ~

, D. cd /
Correct Answer: A
Explanation: The double dot (..) is a special directory entry that represents the
parent of the current directory. Running cd .. moves you up one level in the
filesystem hierarchy. The single dot (.) represents the current directory, the tilde
(~) represents the home directory, and the slash (/) represents the root directory.


Question 7: Which command changes the current directory to /etc?
A. cd etc
B. cd /etc
C. cd ~/etc
D. cd ./etc
Correct Answer: B
Explanation: The slash (/) at the beginning of /etc indicates an absolute path
starting from the root directory. This will take you directly to the etc directory
regardless of your current location. The other options use relative paths: cd etc
looks for an etc subdirectory inside your current directory, cd ~/etc looks for etc
inside your home directory, and cd ./etc also looks for etc inside your current
directory.




Question 8: Which command creates a hard link named format.txt for
the file fmt.txt?
A. ln -s fmt.txt format.txt
B. ln fmt.txt format.txt
C. link -h fmt.txt format.txt
D. hardlink fmt.txt format.txt
Correct Answer: B

Written for

Institution
LPI LINUX ESSENTIALS 010-160
Course
LPI LINUX ESSENTIALS 010-160

Document information

Uploaded on
May 29, 2026
Number of pages
58
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
IszackBd University Of Washington
Follow You need to be logged in order to follow users or courses
Sold
38
Member since
1 year
Number of followers
3
Documents
5387
Last sold
10 hours ago
IszackBd Stuvia

Our store offers a wide selection of materials on various subjects and difficulty levels, created by experienced teachers. We specialize on NURSING,WGU,ACLS USMLE,TNCC,PMHNP,ATI and other major courses, Updated Exam, Study Guides and Test banks. If you don't find any document you are looking for in this store contact us and we will fetch it for you in minutes, we love impressing our clients with our quality work and we are very punctual on deadlines. Please go through the sets description appropriately before any purchase and leave a review after purchasing so as to make sure our customers are 100% satisfied. FOR ANY REQUEST FEEL FREE TO REACH US

Read more Read less
5.0

3 reviews

5
3
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions