Free LPI 010-160 Exam Practice Questions & Explanations

Last updated on: Nov 10, 2026
Prepared & Reviewed by the ValidExamDumps Editorial Team

At ValidExamDumps, we consistently monitor updates to the LPI 010-160 exam questions by LPI. Whenever our team identifies changes in the exam questions, objectives, focus areas or requirements, We immediately update our exam questions for both PDF and online practice exams. This commitment ensures our customers always have access to the most current and accurate questions. By preparing with these up to date and 100% exam domain coverage questions, our customers can successfully pass the LPI Linux Essentials - Exam 010, (version 1.6) exam on their first attempt without needing additional materials or study guides.

Other certification materials providers often include outdated or removed questions by LPI in their 010-160 exam. These outdated questions lead to customers failing their LPI Linux Essentials - Exam 010, (version 1.6) exam. In contrast, we ensure our questions bank includes only precise and up-to-date questions. Our main priority is your success in the LPI 010-160 exam, not profiting from selling obsolete exam questions in PDF or Online Practice Test.

 

Question 2

What happens to a file residing outside the home directory when the file owner's account is deleted? (Choose two.)

Answer Options
Correct Answer: C, E
Explanation

When a user account is deleted, the files owned by that user are not automatically deleted from the file system, unless they are in the user's home directory. The files residing outside the home directory will remain unchanged, but they will have an invalid owner. The owner of a file is identified by a numeric user ID (UID), which is mapped to a user name by the /etc/passwd file. When a user is deleted, the corresponding entry in the /etc/passwd file is removed, but the UID of the file is not changed. Therefore, when listing the file's details, the UID of the former owner is shown instead of the user name. For example, if the user alice with UID 1001 is deleted, and she owns a file named report.txt in the /tmp directory, the output of ls -l /tmp/report.txt will look something like this:

-rw-r--r-- 1 1001 users 1024 Nov 20 14:11 /tmp/report.txt

The user root is not set as the new owner of the file, nor is the file moved to /lost+found or removed from the file system. The /lost+found directory is used to store files that are recovered from a corrupted file system after running the fsck command, not from deleted user accounts. The file system check does not affect the ownership or permissions of the files, unless there is a serious inconsistency that needs to be fixed.Reference:

Linux Essentials - Linux Professional Institute (LPI), section 5.2.1

5.2 Lesson 1 - Linux Professional Institute Certification Programs, slide 6.

Question 3

Which of the following commands puts the lines of the file data.csv into alphabetical order?

Answer Options
Correct Answer: B
Explanation

The sort command is used to sort the lines of a file or a stream of input according to a specified criterion, such as alphabetical order, numerical order, reverse order, etc. By default, the sort command sorts the lines in ascending alphabetical order, using the first character of each line as the key. For example, the command sort data.csv will sort the lines of the file data.csv in alphabetical order and display the output on the screen. If you want to save the sorted output to a new file, you can use the redirection operator (>) to specify the output file name. For example, the command sort data.csv > sorted_data.csv will sort the lines of the file data.csv in alphabetical order and save the output to a new file named sorted_data.csv. The other commands are either invalid or do not perform the sorting operation. The a...z command does not exist, the abc command is a text editor, the wc command counts the number of words, lines, and bytes in a file, and the grep command searches for a pattern in a file or a stream of input. Therefore, the correct answer is B.Reference:

Linux Essentials - Linux Professional Institute (LPI), section 2.3.2

LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, chapter 4, page 95.

Question 4

Which of the following commands extracts the contents of the compressed archive file1.tar.gz?

Answer Options
Correct Answer: C
Explanation

The correct command to extract the contents of the compressed archive file1.tar.gz istar -xzf file1.tar.gz. This command uses the following options:

-xmeans extract files from an archive.

-zmeans filter the archive through gzip, which is a compression program that reduces the size of files.

-fmeans use the following archive file name, which is file1.tar.gz in this case.

The other commands are incorrect for the following reasons:

tar -czf file1.tar.gzcreates a compressed archive file1.tar.gz from the files specified after the command, not extract it.

ztar file1.tar.gzis not a valid command, as ztar is not a standard program or option for tar.

tar --extract file1.tar.gzis missing the-zoption to handle the gzip compression, and also the-foption to specify the file name.

detar file1.tar.gzis not a valid command, as detar is not a standard program or option for tar.


Linux Essentials - Topic 106: The Linux Operating System, section 106.2 Use single shell commands and one line command sequences to perform basic tasks on the command line.

LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, Chapter 5: Working with Files and Directories, section Compressing and Archiving Files.