Validate your 010-160 Exam Preparation with 010-160 Practice Test (Online & Offline) [Q43-Q60]

Share

Validate your 010-160 Exam Preparation with 010-160 Practice Test (Online & Offline)

Get all the Information About Lpi 010-160 Exam 2026 Practice Test Questions

NEW QUESTION # 43
Which of the following commands output the content of the file Texts 2.txt? (Choose two.)

  • A. cat |Texts 2.txt|
  • B. cat 'Texts\ 2.txt'
  • C. cat -- Texts 2.txt
  • D. cat 'Texts 2.txt'
  • E. cat Texts\ 2.txt

Answer: C,D


NEW QUESTION # 44
What is the UID of the user root?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
  • E. 4

Answer: A

Explanation:
Explanation
The UID of the user root is always 0 on Linux systems. This is because the kernel uses the UID 0 to check for the superuser privileges and grant access to all system resources. The name of the user account with UID 0 is usually root, but it can be changed or have aliases. However, some applications may expect the name root and not work properly with a different name. The UID 0 is reserved for the root user and cannot be assigned to any other user. The UID 0 is stored in the /etc/passwd file along with other user information. References:
* Linux Essentials Topic 104: The Linux Operating System, section 104.4: Runlevels and Boot Targets.
* Linux Essentials Topic 106: Security and File Permissions, section 106.1: Basic security and identifying user types.
* Linux Essentials Topic 106: Security and File Permissions, section 106.2: Creating users and groups.


NEW QUESTION # 45
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?

  • A. In the PTR record for 165.100.51.198.in-addr.arpA.
  • B. In the REV record for arpA.in-addr.198.51.100.165.
  • C. In the ARPA record for 165.100.51.198.rev.
  • D. In the RNAME record for 198-51-100-165.rev.arpA.
  • E. In the A record for 165.100.51.198.ipv4.arpA.

Answer: A

Explanation:
Reverse DNS lookups query DNS servers for a PTR (pointer) record; if the server does not have a PTR record, it cannot resolve a reverse lookup. PTR records store IP addresses with their segments reversed, and they append ".in-addr.arpa" to that. For example, if a domain has an IP address of 192.0.2.1, the PTR record will store the domain's information under 1.2.0.192.in-addr.arpa. In IPv6, the latest version of the Internet Protocol, PTR records are stored within the ".ip6.arpa" domain instead of ".in-addr.arpa."1 Therefore, the name of the IP address 198.51.100.165 is stored in the PTR record for 165.100.51.198.in-addr.arpa. Reference: 1: Reverse DNS lookup - Wikipedia 1


NEW QUESTION # 46
Running the command rm Downloadsleads to the following error:
rm: cannot remove 'Downloads/': Is a directory
Which of the following commands can be used instead to remove Downloads, assuming Downloadsis empty? (Choose two.)

  • A. undir Downloads
  • B. rm -r Downloads
  • C. rmdir Downloads
  • D. rem Downloads
  • E. dir -r Downloads

Answer: B,C


NEW QUESTION # 47
Why are web browser cookies considered dangerous?

  • A. Cookies can contain and execute viruses and malware.
  • B. Cookies support identification and tracking of users.
  • C. Cookies are always public and accessible to anyone on the internet.
  • D. Cookies store critical data which is lost when a cookie is deleted.
  • E. Cookies consume significant amounts of storage and can exhaust disk space.

Answer: B

Explanation:
Explanation
Web browser cookies are small pieces of data that are stored by a website on a user's browser. They are used to remember information about the user, such as preferences, login details, shopping cart items, etc. Cookies can also be used to identify and track users across different websites, which can have implications for privacy and security. For example, cookies can be used to show targeted ads based on the user's browsing history, or to collect personal information without the user's consent. Cookies are not inherently dangerous, but they can pose some risks if they are misused or compromised by malicious actors. References:
* Linux Essentials - Linux Professional Institute (LPI), section 1.4.2
* 1.4 Lesson 1 - Linux Professional Institute Certification Programs, slide 18


NEW QUESTION # 48
Which of the following commands can be used to resolve a DNS name to an IP address?

  • A. dns
  • B. iplookup
  • C. host
  • D. query
  • E. dnsname

Answer: C

Explanation:
Explanation
The host command is used to resolve a DNS name to an IP address or vice versa. It can also perform other DNS queries, such as finding the mail servers for a domain. The host command has the following syntax: host
[options] [name] [server]. The name argument can be a hostname, such as www.lpi.org, or an IP address, such as 192.168.0.1. The server argument is optional and specifies the name or IP address of the DNS server to query. If no server is given, the default system resolver is used. References:
* Linux Essentials Version 1.6 Objectives: 1.4.1. Demonstrate an understanding of the purpose and types of DNS records1
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Chapter 10. Network Fundamentals - 10.3. DNS and Hostname Resolution - 10.3.1. The host Command2
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Appendix A. Answers to the Exercises - Chapter 10. Network Fundamentals - 10.3. DNS and Hostname Resolution - Exercise
10.3.12


NEW QUESTION # 49
What is true about links in a Linux file system?

  • A. A hard link can only point to a directory and never to a file.
  • B. When the target of the symbolic link is moved, the link is automatically updated.
  • C. A symbolic link can only point to a file and not to a directory.
  • D. Only the root user can create hard links.
  • E. A symbolic link can point to a file on another file system.

Answer: E

Explanation:
Explanation
A symbolic link, also known as a symlink or soft link, is a special type of file that points to another file or directory by its name. A symbolic link can point to a file or directory on the same or different file system, as long as the target is accessible. For example, you can create a symbolic link to a file on a USB drive or a network share, as long as the device is mounted or the connection is established. However, if the target of the symbolic link is moved, renamed, or deleted, the link becomes broken and does not work. To create a symbolic link, you can use the ln command with the -s or --symbolic option, followed by the target name and the link name. For example, ln -s /mnt/usb/file.txt link.txt creates a symbolic link named link.txt that points to the file.txt on the USB drive mounted at /mnt/usb.
The other options are not true about links in a Linux file system. A symbolic link can point to a directory as well as a file. A hard link, which is a direct reference to the same data as another file, can only point to a file and not a directory. A hard link cannot span across different file systems, because it depends on the inode number, which is unique within a file system. When the target of the symbolic link is moved, the link is not automatically updated, but becomes broken. Any user can create hard links, as long as they have the permission to read and write the target file and the link directory.
References:
* Linux Essentials - Linux Professional Institute (LPI)
* Ln Command in Linux (Create Symbolic Links) | Linuxize


NEW QUESTION # 50
Running the command rm Downloads leads to the following error:
rm: cannot remove 'Downloads/': Is a directory
Which of the following commands can be used instead to remove Downloads, assuming Downloads is empty? (Choose two correct answers.)

  • A. undir Downloads
  • B. rm -r Downloads
  • C. rmdir Downloads
  • D. rem Downloads
  • E. dir -r Downloads

Answer: B,C

Explanation:
To remove a directory, you need to use a command that can delete directories, not just files. The rm command can only remove files by default, unless you use the -r option, which stands for recursive. This option tells rm to delete the directory and all of its contents, including subdirectories and files. The rmdir command can also remove directories, but only if they are empty. If the directory contains any files or subdirectories, rmdir will fail and display an error message. Therefore, the correct commands to remove Downloads, assuming it is empty, are rmdir Downloads and rm -r Downloads. The other commands are either invalid or do not work on directories. Reference:
Linux Essentials - Linux Professional Institute (LPI), section 2.3.1
LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, chapter 4, page 93.


NEW QUESTION # 51
A directory contains the following files:

What would be the output of the following shell script?
for file in *.txt

*.txt

  • A. a b
  • B. c.cav
  • C. b. txt
  • D. a. txt
  • E. a.txt

Answer: C


NEW QUESTION # 52
Where is the operating system of a Raspberry Pi stored?

  • A. On a read only partition on the Raspberry Pi's firmware, next to the BIOS.
  • B. On a removable SD card which is put into the Raspberry Pi.
  • C. On rewritable flash storage which is built into the Raspberry Pi.
  • D. On a Linux extension module connected to the Raspberry Pi's GPIO pins.
  • E. On the master device attached to the Raspberry Pi's IDE bus.

Answer: B

Explanation:
Explanation
The Raspberry Pi uses an SD card (or microSD card for newer models) as its main storage device. This means that the operating system and any other files are stored on the SD card, which can be easily inserted or removed from the Raspberry Pi. The SD card also allows the user to switch between different operating systems by using different cards or partitions. The Raspberry Pi does not have any internal storage, such as a hard disk drive or a solid state drive, nor does it use any external devices, such as an IDE bus, a firmware partition, or a GPIO module, to store the operating system. References:
* Raspberry Pi OS - Raspberry Pi
* Choosing Storage for Raspberry Pi - Kingston Technology
* Beginner's Guide: How To Install a New OS on Raspberry Pi


NEW QUESTION # 53
The current directory contains the following file:
-rw-r-r- 1 root exec 24551 Apr 2 12:36 test.sh
The file contains a validshell script, but executing this file using./test.shleads to this error:
bash: ./test.sh: Permission denied
What should be done in order to successfully execute the script?

  • A. The SetUID bit should be set in the file's permissions
  • B. The file's extension should be changed from .shto.bin.
  • C. The script should be run using#!./test. shinstead of./test.sh.
  • D. The user executing the script should be added to theexecgroup.
  • E. The execute bit should be set in the file's permissions.

Answer: E


NEW QUESTION # 54
What command displays manual pages? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
man


NEW QUESTION # 55
Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project,
the team wants to set up a Linux server without paying for a subscription. Which of the following Linux
distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as
possible?

  • A. Raspbian
  • B. CentOS
  • C. openSUSE
  • D. Ubuntu Linux LTS
  • E. Debian GNU/Linux

Answer: B


NEW QUESTION # 56
Running the commandrm Downloadsleads to the following error:
rm: cannot remove 'Downloads/': Is a directory
Which of the following commands can be used instead toremoveDownloads, assumingDownloadsis empty? (Choose two correct answers.)

  • A. undir Downloads
  • B. rm -r Downloads
  • C. rmdir Downloads
  • D. rem Downloads
  • E. dir -r Downloads

Answer: B,C


NEW QUESTION # 57
Which of the following types of bus can connect hard disk drives with the motherboard?

  • A. The Auto bus
  • B. The CPU bus
  • C. The RAM bus
  • D. The NUMA bus
  • E. The SATA bus

Answer: E

Explanation:
A bus is a communication system that transfers data between components inside a computer or between computers. There are different types of buses that serve different purposes. The RAM bus connects the CPU with the main memory, the NUMA bus connects multiple processors in a multiprocessor system, the CPU bus connects the CPU with other components on the motherboard, and the Auto bus is a fictional bus that can transform into a robot. The SATA bus is the correct answer because it is a type of bus that can connect hard disk drives with the motherboard. SATA stands for Serial Advanced Technology Attachment and it is a standard interface for connecting storage devices such as hard disk drives, solid state drives, and optical drives. SATA offers faster data transfer rates, lower power consumption, and improved cable management compared to older interfaces such as IDE and SCSI. Reference: : [Bus (computing)] : [Transformers: Robots in Disguise (2015 TV series)] : [Serial ATA]3) : [SATA vs. IDE: What's the Difference?]


NEW QUESTION # 58
Which one of the following statements concerning Linux passwords is true?

  • A. All passwords can be decrypted using the system administrator's master password.
  • B. Passwords are only stored in hashed form.
  • C. Passwords may be at most six characters long.
  • D. Passwords may never start with a non-letter.
  • E. Users cannot change their password once it has been set.

Answer: B


NEW QUESTION # 59
Most commands on Linux can display information on their usage. How can this information typically be displayed?

  • A. By running the command with the option /? or /??.
  • B. By running the command with the option /doc or /documentation.
  • C. By running the command with the option -m or --manpage.
  • D. By running the command with the option ?! or ?=!.
  • E. By running the command with the option -h or --help.

Answer: E

Explanation:
Explanation
Most commands on Linux can display information on their usage by running the command with the option -h or --help. This option shows a brief summary of the command syntax, options, arguments, and examples. For example, running ls -h or ls --help will display the usage information for the ls command, which lists files and directories. The -h or --help option is a standard convention for most Linux commands, and it is useful for learning how to use a command or checking its available options. However, some commands may not support this option, or may use a different option to display usage information. In that case, you can use the man command to access the manual page for the command, which provides more detailed information on the command usage, description, options, arguments, examples, and references. For example, running man ls will display the manual page for the ls command. The man command is one of the applications covered in the Linux Essentials certification program from the Linux Professional Institute (LPI). References:
* Linux Essentials - Linux Professional Institute (LPI)
* Linux Commands Cheat Sheet: Beginner to Advanced - GeeksforGeeks


NEW QUESTION # 60
......

Check Real Lpi 010-160 Exam Question for Free (2026): https://pass4sure.actualpdf.com/010-160-real-questions.html