LPI LINUX ESSENTIALS FINAL STUDY
GUIDE 2026 SOLVED QUESTIONS FULLY
CORRECT
⫸ locate Answer: Searches the system managed database of filenames
for files containing the specified string in the filenames. (Search is much
faster than the search performed using the 'find' command)
⫸ updatedb Answer: Updates the system managed database of
filenames
⫸ Displays current working directory Answer: pwd
⫸ Change into the current user's home directory Answer: cd ~
cd $HOME
Both of these do what
⫸ Change to the parent directory of the current directory Answer: cd ..
⫸ Change to the etc directory in the root (/) directory Answer: cd /etc
, ⫸ Creates a hard link named 'format.txt' for the file 'fmt.txt' Answer: ln
fmt.txt format.txt
⫸ Creates a symbolic link named sym.txt of fmt.txt Answer: ln -s
fmt.txt sym.txt
⫸ touch Answer: Can be used to update the timestamp of a file or if that
file doesn't exist it will create a blank file with the specified name.
⫸ Will update the timestamp of the specified file if it exists. If it does
not exist it will not create a blank file. Answer: touch -c file1.txt
⫸ Adds the content "Hey there!" to the specified file. Answer: echo
"Hey there!" > sample.txt
⫸ cat filename.txt Answer: Displays the contents of a file
⫸ Opens the vi editor for the file "sample". This will allow you to write
text into a file. Answer: vi sample
⫸ Will display the "sample" file's byte count Answer: wc -c sample
⫸ Displays the number of characters in the "sample" file Answer: wc -
m sample
GUIDE 2026 SOLVED QUESTIONS FULLY
CORRECT
⫸ locate Answer: Searches the system managed database of filenames
for files containing the specified string in the filenames. (Search is much
faster than the search performed using the 'find' command)
⫸ updatedb Answer: Updates the system managed database of
filenames
⫸ Displays current working directory Answer: pwd
⫸ Change into the current user's home directory Answer: cd ~
cd $HOME
Both of these do what
⫸ Change to the parent directory of the current directory Answer: cd ..
⫸ Change to the etc directory in the root (/) directory Answer: cd /etc
, ⫸ Creates a hard link named 'format.txt' for the file 'fmt.txt' Answer: ln
fmt.txt format.txt
⫸ Creates a symbolic link named sym.txt of fmt.txt Answer: ln -s
fmt.txt sym.txt
⫸ touch Answer: Can be used to update the timestamp of a file or if that
file doesn't exist it will create a blank file with the specified name.
⫸ Will update the timestamp of the specified file if it exists. If it does
not exist it will not create a blank file. Answer: touch -c file1.txt
⫸ Adds the content "Hey there!" to the specified file. Answer: echo
"Hey there!" > sample.txt
⫸ cat filename.txt Answer: Displays the contents of a file
⫸ Opens the vi editor for the file "sample". This will allow you to write
text into a file. Answer: vi sample
⫸ Will display the "sample" file's byte count Answer: wc -c sample
⫸ Displays the number of characters in the "sample" file Answer: wc -
m sample