Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free LPI Linux Essentials - Exam 010, (version 1.6) 010-160 Exam Questions

Page: 1 / 9 Total 81 questions

Want more questions? Get Premium Access.

Question 1

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

Correct Answer: A. man
Explanation:

The command that displays manual pages for Linux commands is themancommand. The man command is used to display the manual pages for a given command or topic. For example, to view the manual page for the ls command, you can type:

man ls

This will open the manual page for the ls command in a pager, which allows you to scroll and search through the text. You can also specify the section number of the manual page if there are multiple pages with the same name. For example, to view the manual page for the passwd command in section 1, you can type:

man 1 passwd

The man command is one of the most useful and important commands for learning and using Linux. It provides detailed information about the syntax, options, arguments, examples, and other aspects of a command or topic. You can also use the --help option to get a brief summary of the usage and options of a command. For example, to get a quick help for the man command, you can type:

man --help

To learn more about the man command and how to use it effectively, you can refer to the following resources:

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

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

How to Access Manual Pages for Linux Commands- Linux Tutorials - Learn Linux Configuration

How to Easily Read a Linux Man Page- Make Tech Easier


Question 2

Question 3

Which of the following DNS record types hold an IP address? (Choose two.)

Correct Answer: B. AAAA; D. A
Explanation:

The DNS record types that hold an IP address are the A and AAAA records. These records are used to map a domain name to an IP address of the host, which is necessary for establishing a connection between a client and a server. The A record holds a 32-bit IPv4 address, while the AAAA record holds a 128-bit IPv6 address. For example, the A record for www.example.com could be:

www.example.com. IN A 192.0.2.1

This means that the domain name www.example.com resolves to the IPv4 address 192.0.2.1. Similarly, the AAAA record for www.example.com could be:

www.example.com. IN AAAA 2001:db8::1

This means that the domain name www.example.com resolves to the IPv6 address 2001:db8::1.

The other options are incorrect because:

NS records are used to specify the authoritative name servers for a domain. They do not hold an IP address, but a domain name of the name server. For example, the NS record for example.com could be:

example.com. IN NS ns1.example.com.

This means that the name server ns1.example.com is authoritative for the domain example.com.

MX records are used to specify the mail exchange servers for a domain. They do not hold an IP address, but a domain name of the mail server and a preference value. For example, the MX record for example.com could be:

example.com. IN MX 10 mail.example.com.

This means that the mail server mail.example.com has a preference value of 10 for receiving email for the domain example.com.

CNAME records are used to create an alias for a domain name. They do not hold an IP address, but another domain name that the alias points to. For example, the CNAME record for www.example.com could be:

www.example.com. IN CNAME example.com.

This means that the domain name www.example.com is an alias for the domain name example.com.


DNS Record Types: Defined and Explained - Site24x7

List of DNS record types - Wikipedia

Question 4

Which of the following keys can be pressed to exit less?

Correct Answer: D. q

Question 5

How is a new Linux computing instance provisioned in an laaS cloud?

Question 6

Which statements about the directory /etc/skel are correct? (Choose two.)

Correct Answer: C. The files from the directory are copied to the home directory of a new user when the account is created.; D. The directory contains a default set of configuration files used by the useradd command.
Explanation:

The /etc/skel directory is a skeleton directory that contains the default files and directories that are automatically copied to the home directory of a new user when the account is created by the useradd command12.The purpose of this directory is to provide a consistent and uniform environment for all new users and to save the system administrator's time and effort in configuring the user settings12.The /etc/skel directory can be customized by adding or removing files and directories as needed, depending on the desired default settings for the new users12.

The other options are incorrect because:

A . The personal user settings of root are stored in this directory.This is not true, as the personal user settings of root are stored in the /root directory, which is the home directory of the root user3.The /etc/skel directory does not affect the root user's settings, but only the settings of the new users created by the useradd command12.

B . The files from the directory are copied to the home directory of the new user when starting the system.This is not true, as the files from the directory are copied to the home directory of the new user when the account is created, not when starting the system12.The copying process only happens once, when the useradd command is executed, and not every time the system is started12.

E . The directory contains the global settings for the Linux system.This is not true, as the directory contains the default settings for the new users, not the global settings for the Linux system12.The global settings for the Linux system are usually stored in other directories under /etc, such as /etc/default, /etc/sysconfig, /etc/init.d, etc4.


Understanding the /etc/skel directory in Linux -- The Geek Diary

/etc/skel directory in Linux - techPiezo

Linux File System Hierarchy - /root directory - LinuxConfig.org

Linux configuration: Understanding *.d directories in /etc | Enable Sysadmin

Question 7

What is the purpose of the PATH environment variable?

Correct Answer: A. It allows the execution of commands without the need to know the location of the executable.

Question 8

Question 9

Which of the following commands creates an archive file work.tar from the contents of the directory ./

work/?

Correct Answer: B. tar --cf work.tar ./work/
Explanation:

The correct command to create an archive file work.tar from the contents of the directory ./work/ is tar --cf work.tar ./work/. This command uses the -c option to create a new archive, the -f option to specify the file name, and the ./work/ argument to indicate the source directory. The other commands are incorrect for various reasons:

A . tar --new work.tar ./work/ is incorrect because there is no --new option in the tar command. The correct option for creating a new archive is --create or -c.

C . tar --create work.tgz --content ./work/ is incorrect because the -content option is not valid. The correct option for specifying the source files or directories is --files-from or -T. Also, the work.tgz file name implies compression, but the command does not use any compression option such as -z, -j, or -J.

D . tar work.tar < ./work/ is incorrect because the tar command does not accept input redirection from the standard input. The correct way to use the tar command is to provide the options and arguments after the command name.

E . tar work > work.tar is incorrect because the tar command does not produce output redirection to the standard output. The correct way to use the tar command is to use the -f option to specify the output file name.Reference: :tar command in Linux with examples - GeeksforGeeks:tar Command in Linux With Examples | phoenixNAP KB


Question 10

Which of the following outputs could stem from the command last?