LPI Linux Essentials Certificate, version 1.6 010-160 Exam Practice Test

Page: 1 / 14
Total 81 questions
Question 1

Why are web browser cookies considered dangerous?



Answer : A

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.Reference:

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

1.4 Lesson 1 - Linux Professional Institute Certification Programs, slide 18


Question 2
Question 3
Question 4

Which command displays file names only and no additional information?



Answer : A

: The ls command is used to list the files and directories in a given path. By default, the ls command displays only the file names, without any additional information. However, the ls command can also take various options to modify its output. For example, the -l option tells ls to display the long format, which includes the file permissions, owner, group, size, date, and name. The -h option tells ls to display the file sizes in a human-readable format, such as KB, MB, GB, etc. The -a option tells ls to display all files, including the hidden ones that start with a dot (.). The -n option tells ls to display the numeric user ID and group ID instead of the user name and group name. Therefore, the only option that does not add any additional information to the file names is the -a option. The command ls -a will display all the file names in the current directory, including the hidden ones, but nothing else.Reference:

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

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


Question 5

Which of the following statements are true regarding a typical shell script? (Choose two.)



Answer : A, B

A typical shell script is a text file that contains a series of commands or instructions that can be executed by a shell interpreter. A shell script usually has the executable permission bit set, which means that it can be run as a program by the user or another program. A shell script also starts with the two character sequence #!, which is called a shebang or a hashbang. This sequence tells the operating system which shell interpreter to use to run the script. For example, #!/bin/bash indicates that the script should be run by the bash shell.Reference:

Linux Essentials - Linux Professional Institute (LPI)1

Linux Essentials - Linux Professional Institute Certification Programs2


Question 6

A new server needs to be installed to host services for a period of several years. Throughout this time, the server should receive important security updates from its Linux distribution.

Which of the following Linux distributions meet these requirements? (Choose two.)



Question 7

Which of the following tar options handle compression? (Choose two correct answers.)



Answer : B, D

The tar command is used to create or extract compressed archive files that contain multiple files or directories. The tar command has the following syntax: tar [options] [archive-file] [file or directory...]. The options argument specifies how the tar command should operate and what kind of compression should be used. The archive-file argument is the name of the archive file to be created or extracted. The file or directory argument is the name of one or more files or directories to be included in or extracted from the archive file.

The following are some of the common options for the tar command:

-c: create a new archive file.

-x: extract files from an existing archive file.

-t: list the contents of an archive file.

-v: show the progress of the operation.

-f: specify the name of the archive file.

-z: use gzip compression or decompression.

-j: use bzip2 compression or decompression.

-J: use xz compression or decompression.

The options -z and -j are used to handle compression with the tar command. The option -z uses the gzip program to compress or decompress the archive file, which usually has the extension .tar.gz or .tgz. The option -j uses the bzip2 program to compress or decompress the archive file, which usually has the extension .tar.bz2 or .tbz. Both gzip and bzip2 are popular compression programs that reduce the size of files by removing redundant or unnecessary information.

For example, to create a compressed archive file called backup.tar.gz that contains the files and directories in the current directory, the following command can be used:

tar -czvf backup.tar.gz .

To extract the files and directories from the archive file backup.tar.gz to the current directory, the following command can be used:

tar -xzvf backup.tar.gz

To create a compressed archive file called backup.tar.bz2 that contains the files and directories in the current directory, the following command can be used:

tar -cjvf backup.tar.bz2 .

To extract the files and directories from the archive file backup.tar.bz2 to the current directory, the following command can be used:

tar -xjvf backup.tar.bz2

The other options in the question are not related to compression. The option -bz is invalid, as there is no such option for the tar command. The option -g is used to create or update an incremental archive file, which only contains the files that have changed since the last backup. The option -z2 is also invalid, as there is no such option for the tar command.Reference:

Linux Essentials Version 1.6 Objectives: 3.1.Archiving Files on the Command Line1

Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Chapter 9. The Power of the Command Line - 9.1. Archiving Files on the Command Line - 9.1.1.The tar Command2

Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Appendix A. Answers to the Exercises - Chapter 9. The Power of the Command Line - 9.1.Archiving Files on the Command Line - Exercise 9.1.12


Page:    1 / 14   
Total 81 questions