You have already completed the Test before. Hence you can not start it again.
Test is loading...
You must sign in or sign up to start the Test.
You have to finish following quiz, to start this Test:
Your results are here!! for" LPI Linux Essentials (010-160) Practice Test 2 "
0 of 21 questions answered correctly
Your time:
Time has elapsed
Your Final Score is : 0
You have attempted : 0
Number of Correct Questions : 0 and scored 0
Number of Incorrect Questions : 0 and Negative marks 0
Average score
Your score
LPI Linux Essentials (010-160)
You have attempted: 0
Number of Correct Questions: 0 and scored 0
Number of Incorrect Questions: 0 and Negative marks 0
You can review your answers by clicking on “View Answers” option. Important Note : Open Reference Documentation Links in New Tab (Right Click and Open in New Tab).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Answered
Review
Question 1 of 21
1. Question
What is the purpose of the PATH environment variable?
Correct
PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files. So, after we add to the PATH variable a path to our executable file, then we can launch our executable without writing a full path to it.
Incorrect
PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files. So, after we add to the PATH variable a path to our executable file, then we can launch our executable without writing a full path to it.
Unattempted
PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files. So, after we add to the PATH variable a path to our executable file, then we can launch our executable without writing a full path to it.
Question 2 of 21
2. Question
Which of the following commands are used to get information on the proper use of ls? (Choose two correct answers.)
Correct
Try running all these commands yourself and you‘ll get the answer (here are only two existing commands, which comprise the correct answer)
Incorrect
Try running all these commands yourself and you‘ll get the answer (here are only two existing commands, which comprise the correct answer)
Unattempted
Try running all these commands yourself and you‘ll get the answer (here are only two existing commands, which comprise the correct answer)
Question 3 of 21
3. Question
Which of the following statements is true about Free Software?
Correct
“A free-software license is a notice that grants the recipient of a piece of software extensive rights to modify and redistribute that software.“ (?) Wikipedia
Incorrect
“A free-software license is a notice that grants the recipient of a piece of software extensive rights to modify and redistribute that software.“ (?) Wikipedia
Unattempted
“A free-software license is a notice that grants the recipient of a piece of software extensive rights to modify and redistribute that software.“ (?) Wikipedia
Question 4 of 21
4. Question
What is true about the su command?
Correct
The su command allows us to switch to another user in the current session. It actually stands for ‘switch user‘.
Incorrect
The su command allows us to switch to another user in the current session. It actually stands for ‘switch user‘.
Unattempted
The su command allows us to switch to another user in the current session. It actually stands for ‘switch user‘.
Question 5 of 21
5. Question
Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (docker), 1001 (libvirt)(wireshark),989
Correct
/etc/passwd file contains list of OS users including UID, GID, shell, home dir… /etc/group file contains list of groups, registered on OS including group name, GID, its members…
Incorrect
/etc/passwd file contains list of OS users including UID, GID, shell, home dir… /etc/group file contains list of groups, registered on OS including group name, GID, its members…
Unattempted
/etc/passwd file contains list of OS users including UID, GID, shell, home dir… /etc/group file contains list of groups, registered on OS including group name, GID, its members…
Question 6 of 21
6. Question
What is true about the dmesg command? (Choose two correct answers.)
Correct
The dmesg command is a Linux utility that displays kernel-related messages retrieved from the kernel ring buffer. The ring buffer stores information about hardware, device driver initialization, and messages from kernel modules that take place during system startup.
Incorrect
The dmesg command is a Linux utility that displays kernel-related messages retrieved from the kernel ring buffer. The ring buffer stores information about hardware, device driver initialization, and messages from kernel modules that take place during system startup.
Unattempted
The dmesg command is a Linux utility that displays kernel-related messages retrieved from the kernel ring buffer. The ring buffer stores information about hardware, device driver initialization, and messages from kernel modules that take place during system startup.
Question 7 of 21
7. Question
Most commands on Linux can display information on their usage. How can this information typically be displayed?
Correct
–help is an option to call brief help for the command
Incorrect
–help is an option to call brief help for the command
Unattempted
–help is an option to call brief help for the command
Question 8 of 21
8. Question
Which of the following commands sets the variable USERNAME to the value bob?
Correct
The correct way to assign the value to the variable is demonstrated in the screenshot:
Incorrect
The correct way to assign the value to the variable is demonstrated in the screenshot:
Unattempted
The correct way to assign the value to the variable is demonstrated in the screenshot:
Question 9 of 21
9. Question
Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?
Correct
1. we need -r or -R option when using cp command to copy all subdirectories 2. no need of dot between asterisks (which implies that the file should have an extension – that is not the necessary case in Linux)
Incorrect
1. we need -r or -R option when using cp command to copy all subdirectories 2. no need of dot between asterisks (which implies that the file should have an extension – that is not the necessary case in Linux)
Unattempted
1. we need -r or -R option when using cp command to copy all subdirectories 2. no need of dot between asterisks (which implies that the file should have an extension – that is not the necessary case in Linux)
Question 10 of 21
10. Question
Which operator in a regular expression matches the preceding character either zero or one time?
Correct
[?] A regular expression followed by a question mark (?) matches zero or one occurrences of the regular expression. (correct answer) [*] A regular expression followed by an asterisk (*) matches a sequence of zero or more occurrences of the regular expression. [+] A regular expression followed by a plus sign (+) matches one or more occurrences of the regular expression. [$] Match the end of the line.
Incorrect
[?] A regular expression followed by a question mark (?) matches zero or one occurrences of the regular expression. (correct answer) [*] A regular expression followed by an asterisk (*) matches a sequence of zero or more occurrences of the regular expression. [+] A regular expression followed by a plus sign (+) matches one or more occurrences of the regular expression. [$] Match the end of the line.
Unattempted
[?] A regular expression followed by a question mark (?) matches zero or one occurrences of the regular expression. (correct answer) [*] A regular expression followed by an asterisk (*) matches a sequence of zero or more occurrences of the regular expression. [+] A regular expression followed by a plus sign (+) matches one or more occurrences of the regular expression. [$] Match the end of the line.
Question 11 of 21
11. Question
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.)
Correct
rmdir command is used to delete empty directories (so-called safe deletion). As well, rm command has -r option, which means deletion of the folders. So, we can use either way to remove an empty folder.
Incorrect
rmdir command is used to delete empty directories (so-called safe deletion). As well, rm command has -r option, which means deletion of the folders. So, we can use either way to remove an empty folder.
Unattempted
rmdir command is used to delete empty directories (so-called safe deletion). As well, rm command has -r option, which means deletion of the folders. So, we can use either way to remove an empty folder.
Question 12 of 21
12. Question
Which of the following are typical services offered by public cloud providers? (Choose three.)
Correct
Internet as a Service is made up transcription of IaaS. The same with Graphics as a Service, as GaaS alias usually stands for ‘Gaming-as-a-service‘. Other answers are correct.
Incorrect
Internet as a Service is made up transcription of IaaS. The same with Graphics as a Service, as GaaS alias usually stands for ‘Gaming-as-a-service‘. Other answers are correct.
Unattempted
Internet as a Service is made up transcription of IaaS. The same with Graphics as a Service, as GaaS alias usually stands for ‘Gaming-as-a-service‘. Other answers are correct.
Question 13 of 21
13. Question
Which of the following programs is a graphical editor for vector graphics?
Correct
Python is a script programming language. NGINX is a web server. Samba is a Windows interoperability tool. MySQL is a database server.
Incorrect
Python is a script programming language. NGINX is a web server. Samba is a Windows interoperability tool. MySQL is a database server.
Unattempted
Python is a script programming language. NGINX is a web server. Samba is a Windows interoperability tool. MySQL is a database server.
Question 14 of 21
14. Question
Which of the following commands finds all lines in the file operating-systems.txt which contain the term linux, regardless of the case?
Correct
grep (stands for global regular expression print) is a command to search some text by using patterns (including regular expressions) less is a text file viewer (not a search tool) cut is a command to remove substrings from lines of text (not a search tool as well) igrep – there is no such command in Linux (you can write one yourself, though)
Incorrect
grep (stands for global regular expression print) is a command to search some text by using patterns (including regular expressions) less is a text file viewer (not a search tool) cut is a command to remove substrings from lines of text (not a search tool as well) igrep – there is no such command in Linux (you can write one yourself, though)
Unattempted
grep (stands for global regular expression print) is a command to search some text by using patterns (including regular expressions) less is a text file viewer (not a search tool) cut is a command to remove substrings from lines of text (not a search tool as well) igrep – there is no such command in Linux (you can write one yourself, though)
Question 15 of 21
15. Question
Why are web browser cookies considered dangerous?
Correct
Internet cookies are small bits of data that are stored as text files on a browser. In short, Internet cookies function to associate these bits of data to specific users. To accomplish this, they must contain at least two pieces of data: a unique user identifier and some information about that unique user. Most cookies are not harmful, but tracking cookies can jeopardize user privacy because they can track an individual‘s browsing patterns and history.
Incorrect
Internet cookies are small bits of data that are stored as text files on a browser. In short, Internet cookies function to associate these bits of data to specific users. To accomplish this, they must contain at least two pieces of data: a unique user identifier and some information about that unique user. Most cookies are not harmful, but tracking cookies can jeopardize user privacy because they can track an individual‘s browsing patterns and history.
Unattempted
Internet cookies are small bits of data that are stored as text files on a browser. In short, Internet cookies function to associate these bits of data to specific users. To accomplish this, they must contain at least two pieces of data: a unique user identifier and some information about that unique user. Most cookies are not harmful, but tracking cookies can jeopardize user privacy because they can track an individual‘s browsing patterns and history.
Question 16 of 21
16. Question
What is the preferred source for the installation of new applications in a Linux based operating system?
Correct
A Linux package repository is a storage location that contains essential and popular software for different Linux distributions and, each distribution has its own official repositories. And this is exactly the place where Linux software (packages) are supposed to be taken from by default. Why not A CD-ROM disk? Because of the need for being up-to-date. Why not The vendor‘s website? Because it‘s not what it‘s meant for. The website has absolutely other purposes. Why not A retail store? What is it? You tell me! 😉
Incorrect
A Linux package repository is a storage location that contains essential and popular software for different Linux distributions and, each distribution has its own official repositories. And this is exactly the place where Linux software (packages) are supposed to be taken from by default. Why not A CD-ROM disk? Because of the need for being up-to-date. Why not The vendor‘s website? Because it‘s not what it‘s meant for. The website has absolutely other purposes. Why not A retail store? What is it? You tell me! 😉
Unattempted
A Linux package repository is a storage location that contains essential and popular software for different Linux distributions and, each distribution has its own official repositories. And this is exactly the place where Linux software (packages) are supposed to be taken from by default. Why not A CD-ROM disk? Because of the need for being up-to-date. Why not The vendor‘s website? Because it‘s not what it‘s meant for. The website has absolutely other purposes. Why not A retail store? What is it? You tell me! 😉
Question 17 of 21
17. Question
What is true about a recursive directory listing?
Correct
A recursive directory listing can be done by typing ls -R command. And its output includes only the content of sub-directories (in terms of presented answers). You can find more help on this command by typing ‘ls –help‘ in the console.
Incorrect
A recursive directory listing can be done by typing ls -R command. And its output includes only the content of sub-directories (in terms of presented answers). You can find more help on this command by typing ‘ls –help‘ in the console.
Unattempted
A recursive directory listing can be done by typing ls -R command. And its output includes only the content of sub-directories (in terms of presented answers). You can find more help on this command by typing ‘ls –help‘ in the console.
Question 18 of 21
18. Question
What is a Linux distribution?
Correct
A Linux distribution (often abbreviated as distro) is an operating system made from a software collection that includes the Linux kernel, a package management system and other system utilities. So, a distro is not a file system, not a set of rules, not a set of changes to Linux. It‘s about compiled OS kernel.
Incorrect
A Linux distribution (often abbreviated as distro) is an operating system made from a software collection that includes the Linux kernel, a package management system and other system utilities. So, a distro is not a file system, not a set of rules, not a set of changes to Linux. It‘s about compiled OS kernel.
Unattempted
A Linux distribution (often abbreviated as distro) is an operating system made from a software collection that includes the Linux kernel, a package management system and other system utilities. So, a distro is not a file system, not a set of rules, not a set of changes to Linux. It‘s about compiled OS kernel.
Question 19 of 21
19. Question
When typing a long command line at the shell, what single character can be used to split a command across multiple lines?
Correct
In Linux terminal we can split a command across multiple lines by using backslash symbol (as it illustrated in screenshot below).
Incorrect
In Linux terminal we can split a command across multiple lines by using backslash symbol (as it illustrated in screenshot below).
Unattempted
In Linux terminal we can split a command across multiple lines by using backslash symbol (as it illustrated in screenshot below).
Question 20 of 21
20. Question
Which of the following commands sorts the output of the command export-logs?
Correct
To accomplish the task from the question (sorting the output of the command export-logs) you should use Linux pipeline which is implemented by a vertical slash symbol: ‘|‘
Incorrect
To accomplish the task from the question (sorting the output of the command export-logs) you should use Linux pipeline which is implemented by a vertical slash symbol: ‘|‘
Unattempted
To accomplish the task from the question (sorting the output of the command export-logs) you should use Linux pipeline which is implemented by a vertical slash symbol: ‘|‘
Question 21 of 21
21. Question
Which of the following tasks can the command passwd accomplish? (Choose two.)
Correct
The main purpose of the passwd command is to change user‘s password. But it can lock user as well by using -l option.
Incorrect
The main purpose of the passwd command is to change user‘s password. But it can lock user as well by using -l option.
Unattempted
The main purpose of the passwd command is to change user‘s password. But it can lock user as well by using -l option.
X
Best wishes. Don’t forget to leave a feedback in Contact Us form after your result.