LPI Linux Essentials Certificate, version 1.6 010-160 Exam Questions

Page: 1 / 14
Total 81 questions
Question 1

Which of the following devices represents a hard disk partition?



Answer : D

Section: (none)

The correct device name that represents a hard disk partition is /dev/sda2. This device name follows the Linux convention for naming hard disk devices and partitions.According to this convention123:

The first part of the device name indicates the type of the device. For example, /dev/hd* for IDE drives, /dev/sd* for SCSI, SATA, USB, or eSATA drives, /dev/nvme* for NVMe drives, etc.

The second part of the device name indicates the order of the device as detected by the system. For example, /dev/sda is the first serial drive, /dev/sdb is the second serial drive, and so on.

The third part of the device name indicates the number of the partition on the device. For example, /dev/sda1 is the first partition on the first serial drive, /dev/sda2 is the second partition on the first serial drive, and so on.

Therefore, /dev/sda2 means the second partition on the first serial drive, which is a valid hard disk partition. The other options are not valid hard disk partitions, because they do not follow the Linux convention. For example:

/dev/ttyS0 is a serial port device, not a hard disk device4.

/dev/sata0 is not a valid device name, because it does not specify the partition number. It should be something like /dev/sata0p1 or /dev/sata0p2, etc.

/dev/part0 is not a valid device name, because it does not specify the device type or the partition number. It should be something like /dev/sdXp0 or /dev/hdXp0, etc.

/dev/sda/p2 is not a valid device name, because it uses a slash (/) instead of a number to indicate the partition. It should be something like /dev/sda2 or /dev/sda3, etc.


Explanation

Question 2

Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?



Answer : B

The correct command to copy the contents of the directory /etc/, including all sub-directories, to /root/ iscp -r /etc/* /root. This command uses the cp command, which stands for copy, and is used to copy files and directories on Linux and Unix systems.The command also uses the following options and arguments123:

The -r option, which stands for recursive, and tells cp to copy all files and sub-directories of the source directory. Alternatively, the -R option can be used, which has the same effect as -r.

The /etc/* argument, which specifies the source directory and all its contents. The asterisk (*) is a wildcard character that matches any file or directory name. This argument tells cp to copy everything inside the /etc/ directory, but not the directory itself.

The /root argument, which specifies the destination directory. This argument tells cp to copy the source files and sub-directories to the /root/ directory.

The other options are incorrect because they use different commands or syntax that do not copy the contents of the directory /etc/, including all sub-directories, to /root/. For example:

Option A uses the copy command, which is not a valid Linux command. The correct command is cp.

Option C uses the -v option, which stands for verbose, and tells cp to print verbose output. This option does not affect the copying process, but only the output. It also does not include the -r or -R option, which is necessary to copy the sub-directories.

Option D uses the rcp command, which stands for remote copy, and is used to copy files between different hosts on a network. This command is not relevant for copying files on the same host.

Option E uses the -R option, which is correct, but also uses the.argument, which is incorrect. The dot (.) is a special character that matches any single character. This argument tells cp to copy only the files and directories that have a dot in their name, which may exclude some files and directories that do not have a dot.


Question 3

What is true about a recursive directory listing?



Question 4

What is a Linux distribution?



Answer : B

A Linux distribution is a collection of software that is based on the Linux kernel and can be installed on a computer or a device to create a functional operating system. A Linux distribution typically includes the Linux kernel, a set of system utilities and libraries, a graphical user interface (GUI), a package manager, and various applications and services. A Linux distribution may also include additional software or features that are specific to the distribution's goals, target audience, or philosophy. For example, some Linux distributions are designed for desktop users, while others are optimized for servers, embedded systems, or security. Some Linux distributions are based on other Linux distributions, while others are developed independently. Some Linux distributions are free and open source, while others are proprietary or commercial. Some Linux distributions are popular and widely used, while others are niche or experimental. Some examples of Linux distributions are Ubuntu, Fedora, Debian, Mint, Arch, and Red Hat.Reference:

Linux Essentials Topic 101: System Architecture, section 101.1: Determine and configure hardware settings.

Linux Essentials Topic 102: Linux Installation and Package Management, section 102.1: Design hard disk layout.

Linux Essentials Topic 103: GNU and Unix Commands, section 103.1: Work on the command line.

Linux Essentials Topic 104: The Linux Operating System, section 104.1: Boot the system.

Linux Essentials Topic 105: The Power of the Command Line, section 105.1: Use text streams and filters.

Linux Essentials Topic 106: Security and File Permissions, section 106.3: Modify file and directory permissions.

What is a Linux distribution? - Linux.com

Linux distribution - Wikipedia

Best Linux Distributions For Everyone in 2023 - It's FOSS


Question 5
Question 6
Question 7
Page:    1 / 14   
Total 81 questions