LPI Linux Essentials (010-160) Total Questions: 81 – 2 Mock Exams
Practice Set 1
Time limit: 0
0 of 60 questions completed
Questions:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Information
Click on Start Test
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 1 "
0 of 60 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Answered
Review
Question 1 of 60
1. Question
What information is stored in /etc/passwd? (Choose three)
Correct
If you take a look at /etc/passwd file‘s content, you‘ll find out that the first column is a user name, the third column is UID and the last column is its default shell. Long-long ago this file used to store password HASH. But nowadays not everyone even remember that as it‘s not so anymore.
Incorrect
If you take a look at /etc/passwd file‘s content, you‘ll find out that the first column is a user name, the third column is UID and the last column is its default shell. Long-long ago this file used to store password HASH. But nowadays not everyone even remember that as it‘s not so anymore.
Unattempted
If you take a look at /etc/passwd file‘s content, you‘ll find out that the first column is a user name, the third column is UID and the last column is its default shell. Long-long ago this file used to store password HASH. But nowadays not everyone even remember that as it‘s not so anymore.
Question 2 of 60
2. Question
Where is the operating system of a Raspberry Pi stored?
Correct
The Raspberry Pi does not come with an OS because it doesn‘t contain an onboard hard drive of flash memory for storage. The OS and user files are all stored on a micro SD card that is inserted into the board itself.
Incorrect
The Raspberry Pi does not come with an OS because it doesn‘t contain an onboard hard drive of flash memory for storage. The OS and user files are all stored on a micro SD card that is inserted into the board itself.
Unattempted
The Raspberry Pi does not come with an OS because it doesn‘t contain an onboard hard drive of flash memory for storage. The OS and user files are all stored on a micro SD card that is inserted into the board itself.
Question 3 of 60
3. Question
The file script.sh in the current directory contains the following content: #!/bin/bashecho $MYVAR The following commands are used to execute this script: MYVAR=value./script.sh The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?
Correct
The export command is a built-in Bash shell command that exports environmental variables as child processes. The question scenario reproduced in screenshot. The solution emphasized:
Incorrect
The export command is a built-in Bash shell command that exports environmental variables as child processes. The question scenario reproduced in screenshot. The solution emphasized:
Unattempted
The export command is a built-in Bash shell command that exports environmental variables as child processes. The question scenario reproduced in screenshot. The solution emphasized:
Question 4 of 60
4. Question
Which of the following outputs could stem from the command last?
Correct
Screenshot with the last command output as an illustration:
Incorrect
Screenshot with the last command output as an illustration:
Unattempted
Screenshot with the last command output as an illustration:
Question 5 of 60
5. Question
Which of the following keys can be pressed to exit less?
Correct
q‘ stands for quit. So, this is the key to exit the less viewer (as well as many others programs in Linux terminal)
Incorrect
q‘ stands for quit. So, this is the key to exit the less viewer (as well as many others programs in Linux terminal)
Unattempted
q‘ stands for quit. So, this is the key to exit the less viewer (as well as many others programs in Linux terminal)
Question 6 of 60
6. Question
Which of the following Linux Distributions is derived from Red Hat Enterprise Linux?
Correct
Red Hat Enterprise Linux (RHEL) is an upstream source for CentOS (from Community Enterprise Operating System).
Incorrect
Red Hat Enterprise Linux (RHEL) is an upstream source for CentOS (from Community Enterprise Operating System).
Unattempted
Red Hat Enterprise Linux (RHEL) is an upstream source for CentOS (from Community Enterprise Operating System).
Question 7 of 60
7. Question
What is the return value of a shell script after successful execution?
Correct
Every command returns an exit status. A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually can be interpreted as an error code.
Incorrect
Every command returns an exit status. A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually can be interpreted as an error code.
Unattempted
Every command returns an exit status. A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually can be interpreted as an error code.
Question 8 of 60
8. Question
What is the UID of the user root?
Correct
On Linux the superuser account is root, which always has UID=0
Incorrect
On Linux the superuser account is root, which always has UID=0
Unattempted
On Linux the superuser account is root, which always has UID=0
Question 9 of 60
9. Question
Which of the following devices represents a hard disk partition?
Correct
During installation, Linux takes the first hard disk found and assigns it the value sda. If we have multiple partitions in the hard disk, the system consecutively appended a number starting from sda1 to sda15. In a single hard disk, we can only have a maximum of 15 partitions. So, /dev/sda2 should represents a second hard disk partition
Incorrect
During installation, Linux takes the first hard disk found and assigns it the value sda. If we have multiple partitions in the hard disk, the system consecutively appended a number starting from sda1 to sda15. In a single hard disk, we can only have a maximum of 15 partitions. So, /dev/sda2 should represents a second hard disk partition
Unattempted
During installation, Linux takes the first hard disk found and assigns it the value sda. If we have multiple partitions in the hard disk, the system consecutively appended a number starting from sda1 to sda15. In a single hard disk, we can only have a maximum of 15 partitions. So, /dev/sda2 should represents a second hard disk partition
Question 10 of 60
10. Question
What information can be displayed by top?
Correct
To check the answer out just run (for one-line help about top) whatis top and then (to launch top with sorting by %CPU column) top -o %CPU in Linux terminal. And you‘ll find everything out yourself.
Incorrect
To check the answer out just run (for one-line help about top) whatis top and then (to launch top with sorting by %CPU column) top -o %CPU in Linux terminal. And you‘ll find everything out yourself.
Unattempted
To check the answer out just run (for one-line help about top) whatis top and then (to launch top with sorting by %CPU column) top -o %CPU in Linux terminal. And you‘ll find everything out yourself.
Question 11 of 60
11. Question
What is true about the owner of a file?
Correct
The only correct statement is Each file is owned by exactly one user and one group. which can be proved by the output of ls -l command
Incorrect
The only correct statement is Each file is owned by exactly one user and one group. which can be proved by the output of ls -l command
Unattempted
The only correct statement is Each file is owned by exactly one user and one group. which can be proved by the output of ls -l command
Question 12 of 60
12. Question
What are the differences between hard disk drives and solid state disks?
Correct
Both disk types can fail due to physical damage. Ordinarily Hard disk drives can store many times as much data as Solid state disks. So. Hard disks have a motor and moving parts, solid state disks do not. (True) Solid state disks provide faster access to stored data than hard disks. (True)
Incorrect
Both disk types can fail due to physical damage. Ordinarily Hard disk drives can store many times as much data as Solid state disks. So. Hard disks have a motor and moving parts, solid state disks do not. (True) Solid state disks provide faster access to stored data than hard disks. (True)
Unattempted
Both disk types can fail due to physical damage. Ordinarily Hard disk drives can store many times as much data as Solid state disks. So. Hard disks have a motor and moving parts, solid state disks do not. (True) Solid state disks provide faster access to stored data than hard disks. (True)
Question 13 of 60
13. Question
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.)
Correct
LTS stands for Long Term Support. And the question implies several years of maintenance (which is relatively Long Term). So, Ubuntu LTS suits the goal. And Red Hat is a particularly reliable distro of Linux suitable for deployment as a server.
Incorrect
LTS stands for Long Term Support. And the question implies several years of maintenance (which is relatively Long Term). So, Ubuntu LTS suits the goal. And Red Hat is a particularly reliable distro of Linux suitable for deployment as a server.
Unattempted
LTS stands for Long Term Support. And the question implies several years of maintenance (which is relatively Long Term). So, Ubuntu LTS suits the goal. And Red Hat is a particularly reliable distro of Linux suitable for deployment as a server.
Question 14 of 60
14. Question
Which one of the following statements concerning Linux passwords is true?
Correct
To make sure that passwords are kept in HASHed form, we can take a look at /etc/shadow file:
Incorrect
To make sure that passwords are kept in HASHed form, we can take a look at /etc/shadow file:
Unattempted
To make sure that passwords are kept in HASHed form, we can take a look at /etc/shadow file:
Question 15 of 60
15. Question
What are the differences between a private web browser window and a regular web browser window?
Correct
Private web browsing does not forbid printing of web pages. You can login to website while working in private browser. Other assertions are true.
Incorrect
Private web browsing does not forbid printing of web pages. You can login to website while working in private browser. Other assertions are true.
Unattempted
Private web browsing does not forbid printing of web pages. You can login to website while working in private browser. Other assertions are true.
Question 16 of 60
16. Question
Which package management tool is used in Red Hat-based Linux Systems?
Correct
Hint: rpm stands for Red-Hat Package Management
Incorrect
Hint: rpm stands for Red-Hat Package Management
Unattempted
Hint: rpm stands for Red-Hat Package Management
Question 17 of 60
17. Question
The current directory contains the following file: -rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh Given that the file is a valid shell script, how can this script be executed? (Choose two.)
Correct
We execute a bash script by writing its path, like ./test.sh or by passing its name as an argument when launching bash directly, like bash test.sh
Incorrect
We execute a bash script by writing its path, like ./test.sh or by passing its name as an argument when launching bash directly, like bash test.sh
Unattempted
We execute a bash script by writing its path, like ./test.sh or by passing its name as an argument when launching bash directly, like bash test.sh
Question 18 of 60
18. Question
Which of the following commands will search for the file foo.txt under the directory /home?
Correct
First, to search for the files in Linux terminal we use find command. Then, we define the directory where we‘re going to do our search. And then, after the ‘-name‘ option we can specify the filename or pattern. For more into type man find in the console.
Incorrect
First, to search for the files in Linux terminal we use find command. Then, we define the directory where we‘re going to do our search. And then, after the ‘-name‘ option we can specify the filename or pattern. For more into type man find in the console.
Unattempted
First, to search for the files in Linux terminal we use find command. Then, we define the directory where we‘re going to do our search. And then, after the ‘-name‘ option we can specify the filename or pattern. For more into type man find in the console.
Question 19 of 60
19. Question
Which command adds the new user tux and creates the users home directory with default configuration files?
Correct
The command for a user creation is useradd. The ‘-m‘ option in it is used to declare the necessity of home directory creation. Don‘t forget about the root privileges when using this command. You can find additional help by typing useradd –help in the command line.
Incorrect
The command for a user creation is useradd. The ‘-m‘ option in it is used to declare the necessity of home directory creation. Don‘t forget about the root privileges when using this command. You can find additional help by typing useradd –help in the command line.
Unattempted
The command for a user creation is useradd. The ‘-m‘ option in it is used to declare the necessity of home directory creation. Don‘t forget about the root privileges when using this command. You can find additional help by typing useradd –help in the command line.
Question 20 of 60
20. Question
Which of the following directories contains information, documentation and example configuration files for installed software packages?
Correct
The /usr/share/doc is the folder, where you can find the documentation files for programs installed on your system. The /etc folder comprises all system-wide configuration files and some shell scripts that are executed during the system boot. The /var contains files that are of variable content, so their content is not static and it constantly changes, like log files.
Incorrect
The /usr/share/doc is the folder, where you can find the documentation files for programs installed on your system. The /etc folder comprises all system-wide configuration files and some shell scripts that are executed during the system boot. The /var contains files that are of variable content, so their content is not static and it constantly changes, like log files.
Unattempted
The /usr/share/doc is the folder, where you can find the documentation files for programs installed on your system. The /etc folder comprises all system-wide configuration files and some shell scripts that are executed during the system boot. The /var contains files that are of variable content, so their content is not static and it constantly changes, like log files.
Question 21 of 60
21. Question
Which of the following commands output the content of the file Texts 2.txt? (Choose two.)
Correct
The trick in this question is the space within the file name (before the 2 digit), which forces us to use whether the quotes or the left slash to mention our file. Correct commands are emphasized on the screenshot:
Incorrect
The trick in this question is the space within the file name (before the 2 digit), which forces us to use whether the quotes or the left slash to mention our file. Correct commands are emphasized on the screenshot:
Unattempted
The trick in this question is the space within the file name (before the 2 digit), which forces us to use whether the quotes or the left slash to mention our file. Correct commands are emphasized on the screenshot:
Question 22 of 60
22. Question
Which of the following DNS record types hold an IP address? (Choose two.)
Correct
Commonly used record types: A (Host address) AAAA (IPv6 host address) ALIAS (Auto resolved alias) CNAME (Canonical name for an alias) MX (Mail eXchange) NS (Name Server) PTR (Pointer) SOA (Start Of Authority) SRV (location of service) TXT (Descriptive text) So, for this question the correct answers should be A and AAAA.
Incorrect
Commonly used record types: A (Host address) AAAA (IPv6 host address) ALIAS (Auto resolved alias) CNAME (Canonical name for an alias) MX (Mail eXchange) NS (Name Server) PTR (Pointer) SOA (Start Of Authority) SRV (location of service) TXT (Descriptive text) So, for this question the correct answers should be A and AAAA.
Unattempted
Commonly used record types: A (Host address) AAAA (IPv6 host address) ALIAS (Auto resolved alias) CNAME (Canonical name for an alias) MX (Mail eXchange) NS (Name Server) PTR (Pointer) SOA (Start Of Authority) SRV (location of service) TXT (Descriptive text) So, for this question the correct answers should be A and AAAA.
Question 23 of 60
23. Question
What parameter of ls prints a recursive listing of a directory‘s content? (Specify ONLY the option name without any values or parameters.)
Correct
-R option of ls command lists subdirectories recursively. Please, pay attention, that the ‘R‘ letter is uppercase (letters case is extremally important in Linux). You can find more help on this question by typing ls –help in Linux console.
Incorrect
-R option of ls command lists subdirectories recursively. Please, pay attention, that the ‘R‘ letter is uppercase (letters case is extremally important in Linux). You can find more help on this question by typing ls –help in Linux console.
Unattempted
-R option of ls command lists subdirectories recursively. Please, pay attention, that the ‘R‘ letter is uppercase (letters case is extremally important in Linux). You can find more help on this question by typing ls –help in Linux console.
Question 24 of 60
24. Question
Which of the following programs are web servers? (Choose two.)
Correct
Apache and Nginx are the most famous Linux web servers.
Incorrect
Apache and Nginx are the most famous Linux web servers.
Unattempted
Apache and Nginx are the most famous Linux web servers.
Question 25 of 60
25. Question
What is true about links in a Linux file system?
Correct
1. A symbolic link can point to a file or to a directory. 2. A hard link can only point to a file and never to a directory (opposite to offered answer). 3. When the target of the symbolic link is moved, the link breaks. 4. A symbolic link can point to a file on another file system (TRUE STATEMENT). 5. A user is not forbidden to create hard links by default. You can find more info on links topic by typing ln –help or man ln in the terminal
Incorrect
1. A symbolic link can point to a file or to a directory. 2. A hard link can only point to a file and never to a directory (opposite to offered answer). 3. When the target of the symbolic link is moved, the link breaks. 4. A symbolic link can point to a file on another file system (TRUE STATEMENT). 5. A user is not forbidden to create hard links by default. You can find more info on links topic by typing ln –help or man ln in the terminal
Unattempted
1. A symbolic link can point to a file or to a directory. 2. A hard link can only point to a file and never to a directory (opposite to offered answer). 3. When the target of the symbolic link is moved, the link breaks. 4. A symbolic link can point to a file on another file system (TRUE STATEMENT). 5. A user is not forbidden to create hard links by default. You can find more info on links topic by typing ln –help or man ln in the terminal
Question 26 of 60
26. Question
The ownership of the file doku.odt should be changed. The new owner is named tux. Which command accomplishes this change?
Correct
The command that changes the ownership of the files is chown (acronym for ‘change owner‘). Its correct syntax is this: chown [user] [target_file] Don‘t forget sudo prefix.
Incorrect
The command that changes the ownership of the files is chown (acronym for ‘change owner‘). Its correct syntax is this: chown [user] [target_file] Don‘t forget sudo prefix.
Unattempted
The command that changes the ownership of the files is chown (acronym for ‘change owner‘). Its correct syntax is this: chown [user] [target_file] Don‘t forget sudo prefix.
Question 27 of 60
27. Question
Which of the following commands adds the directory /new/dir/ to the PATH environment variable?
Correct
When we read some variable (like PATH), we have to use the dollar sign in front of it. When we change a variable, we don‘t use the dollar sign. So. export PATH=/new/dir:$PATH is correct This option PATH=/new/dir:PATH is almost the working one if only it had the dollar sign on the left PATH=/new/dir:$PATH
Incorrect
When we read some variable (like PATH), we have to use the dollar sign in front of it. When we change a variable, we don‘t use the dollar sign. So. export PATH=/new/dir:$PATH is correct This option PATH=/new/dir:PATH is almost the working one if only it had the dollar sign on the left PATH=/new/dir:$PATH
Unattempted
When we read some variable (like PATH), we have to use the dollar sign in front of it. When we change a variable, we don‘t use the dollar sign. So. export PATH=/new/dir:$PATH is correct This option PATH=/new/dir:PATH is almost the working one if only it had the dollar sign on the left PATH=/new/dir:$PATH
Question 28 of 60
28. Question
What is defined by a Free Software license?
Correct
Paid of Free software is about conditions of its use. It has nothing to do with tech docs, nor programming languages, nor list of libraries.
Incorrect
Paid of Free software is about conditions of its use. It has nothing to do with tech docs, nor programming languages, nor list of libraries.
Unattempted
Paid of Free software is about conditions of its use. It has nothing to do with tech docs, nor programming languages, nor list of libraries.
Question 29 of 60
29. Question
Which of the following examples shows the general structure of a for loop in a shell script?
Correct
All code samples but one have syntax error in bash shell.
Incorrect
All code samples but one have syntax error in bash shell.
Unattempted
All code samples but one have syntax error in bash shell.
Question 30 of 60
30. Question
Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?
Correct
/var contains variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files. Some portions of /var are not shareable between different systems.
Incorrect
/var contains variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files. Some portions of /var are not shareable between different systems.
Unattempted
/var contains variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files. Some portions of /var are not shareable between different systems.
Question 31 of 60
31. Question
Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?
Correct
The correct syntax for the zip command is this: zip [output_file_name] [input_files_list]
Incorrect
The correct syntax for the zip command is this: zip [output_file_name] [input_files_list]
Unattempted
The correct syntax for the zip command is this: zip [output_file_name] [input_files_list]
Question 32 of 60
32. Question
Which of the following commands extracts the contents of the compressed archive file1.tar.gz?
Correct
tar command is used for archiving files. -x option — for extracting files from an archive -z option — to filter the archive through gzip -f option — to work with files -c option — to create a new archive More help you can find by typing tar –help in the command line.
Incorrect
tar command is used for archiving files. -x option — for extracting files from an archive -z option — to filter the archive through gzip -f option — to work with files -c option — to create a new archive More help you can find by typing tar –help in the command line.
Unattempted
tar command is used for archiving files. -x option — for extracting files from an archive -z option — to filter the archive through gzip -f option — to work with files -c option — to create a new archive More help you can find by typing tar –help in the command line.
Question 33 of 60
33. Question
The current directory contains the following file: -rw-r–r– 1 root exec 24551 Apr 2 12:36 test.sh The file contains a valid shell script, but executing this file using ./test.sh leads to this error: bash: ./test.sh: Permission denied What should be done in order to successfully execute the script?
Correct
The key in this question is the first column in the directory content, which is -rw-r–r– There we can see that the file doesn‘t have an executing privilege. And this is the reason for the resulting error. So, to solve this we have to add the execution permission for the file (to the owner of the file, at least). The solution could look like: chmod u+x test.sh The case is reproduced in screenshot:
Incorrect
The key in this question is the first column in the directory content, which is -rw-r–r– There we can see that the file doesn‘t have an executing privilege. And this is the reason for the resulting error. So, to solve this we have to add the execution permission for the file (to the owner of the file, at least). The solution could look like: chmod u+x test.sh The case is reproduced in screenshot:
Unattempted
The key in this question is the first column in the directory content, which is -rw-r–r– There we can see that the file doesn‘t have an executing privilege. And this is the reason for the resulting error. So, to solve this we have to add the execution permission for the file (to the owner of the file, at least). The solution could look like: chmod u+x test.sh The case is reproduced in screenshot:
Question 34 of 60
34. Question
A user is currently in the directory /home/user/Downloads/ and runs the command ls ../Documents/ Assuming it exists, which directorys content is displayed?
Correct
The two dots statement is the designation of the parent directory. So, by running that command a user should go first one level up and then to Documents directory there. Proof from the console (the cd command added for illustration):
Incorrect
The two dots statement is the designation of the parent directory. So, by running that command a user should go first one level up and then to Documents directory there. Proof from the console (the cd command added for illustration):
Unattempted
The two dots statement is the designation of the parent directory. So, by running that command a user should go first one level up and then to Documents directory there. Proof from the console (the cd command added for illustration):
Question 35 of 60
35. Question
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?
Correct
Because CentOS Linux was derived from Red Hat Enterprise Linux sources, users migrating to Red Hat can continue to use many of the same techniques and elements with minimal training, while also gaining more features, tools, support, and value.
Incorrect
Because CentOS Linux was derived from Red Hat Enterprise Linux sources, users migrating to Red Hat can continue to use many of the same techniques and elements with minimal training, while also gaining more features, tools, support, and value.
Unattempted
Because CentOS Linux was derived from Red Hat Enterprise Linux sources, users migrating to Red Hat can continue to use many of the same techniques and elements with minimal training, while also gaining more features, tools, support, and value.
Question 36 of 60
36. Question
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?
Correct
So, the tar is an archiving utility. And its‘ -c, -f options allow us to create a new archive.
Incorrect
So, the tar is an archiving utility. And its‘ -c, -f options allow us to create a new archive.
Unattempted
So, the tar is an archiving utility. And its‘ -c, -f options allow us to create a new archive.
Question 37 of 60
37. Question
Which of the following characters in a shell prompt indicates the shell is running with root privileges?
Correct
Mainly there‘re two signs indicating the current type of privileges. It‘s the $ symbol, used for ordinary user, and the # sumbol, used for the root.
Incorrect
Mainly there‘re two signs indicating the current type of privileges. It‘s the $ symbol, used for ordinary user, and the # sumbol, used for the root.
Unattempted
Mainly there‘re two signs indicating the current type of privileges. It‘s the $ symbol, used for ordinary user, and the # sumbol, used for the root.
Question 38 of 60
38. Question
Which of the following is a protocol used for automatic IP address configuration?
Correct
DHCP stands for Dynamic Host Configuration Protocol. It is the correct answer. It is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway. NFS is Network File System protocol. STMP is Simple Mail Transfer Protocol DNS is Domain Name System LDAP is Lightweight Directory Access Protocol
Incorrect
DHCP stands for Dynamic Host Configuration Protocol. It is the correct answer. It is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway. NFS is Network File System protocol. STMP is Simple Mail Transfer Protocol DNS is Domain Name System LDAP is Lightweight Directory Access Protocol
Unattempted
DHCP stands for Dynamic Host Configuration Protocol. It is the correct answer. It is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway. NFS is Network File System protocol. STMP is Simple Mail Transfer Protocol DNS is Domain Name System LDAP is Lightweight Directory Access Protocol
Question 39 of 60
39. Question
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)
Correct
Yes. You can define a loop in a shell script by using for keyword. For more help type man bash in Linux terminal
Incorrect
Yes. You can define a loop in a shell script by using for keyword. For more help type man bash in Linux terminal
Unattempted
Yes. You can define a loop in a shell script by using for keyword. For more help type man bash in Linux terminal
Question 40 of 60
40. Question
Which of the following commands can be used to resolve a DNS name to an IP address?
Correct
host is DNS lookup utility. You can prove it by launching man host command (which is a user manual for host command). Other answers are made up commands or commands, used for other purposes.
Incorrect
host is DNS lookup utility. You can prove it by launching man host command (which is a user manual for host command). Other answers are made up commands or commands, used for other purposes.
Unattempted
host is DNS lookup utility. You can prove it by launching man host command (which is a user manual for host command). Other answers are made up commands or commands, used for other purposes.
Question 41 of 60
41. Question
Which of the following commands shows the absolute path to the current working directory?
Correct
pwd stands for print working directory So, all that this command does is it outputs the current location.
Incorrect
pwd stands for print working directory So, all that this command does is it outputs the current location.
Unattempted
pwd stands for print working directory So, all that this command does is it outputs the current location.
Question 42 of 60
42. 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 (wireshark), 989 (docker), 1001 (libvirt)
Correct
The /etc/passwd file stores vital information about users such as username, home directory, etc. The /etc/group file is a text file that defines the groups on the system.
Incorrect
The /etc/passwd file stores vital information about users such as username, home directory, etc. The /etc/group file is a text file that defines the groups on the system.
Unattempted
The /etc/passwd file stores vital information about users such as username, home directory, etc. The /etc/group file is a text file that defines the groups on the system.
Question 43 of 60
43. Question
What command displays manual pages? (Specify ONLY the command without any path or parameters.) Solution: man Does this meet the goal?
Correct
The man command is an interface to the system reference manuals For more info type man man in Linux console or type whatis man.
Incorrect
The man command is an interface to the system reference manuals For more info type man man in Linux console or type whatis man.
Unattempted
The man command is an interface to the system reference manuals For more info type man man in Linux console or type whatis man.
Question 44 of 60
44. Question
Which of the following values could be a process ID on Linux? 60b503cd-019e-4300-a7be-922f074ef5ce
Correct
The process identifier (a.k.a. process ID or PID) is a positive natural number used by most operating systems to uniquely identify an active process. So, among the offered answers there is only one positive natural number.
Incorrect
The process identifier (a.k.a. process ID or PID) is a positive natural number used by most operating systems to uniquely identify an active process. So, among the offered answers there is only one positive natural number.
Unattempted
The process identifier (a.k.a. process ID or PID) is a positive natural number used by most operating systems to uniquely identify an active process. So, among the offered answers there is only one positive natural number.
Question 45 of 60
45. Question
What happens to a file residing outside the home directory when the file owner‘s account is deleted? (Choose two.)
Correct
Nothing happens to the file itself (like deletion or moving, or changing the owner). The scenario implemented on screenshot:
Incorrect
Nothing happens to the file itself (like deletion or moving, or changing the owner). The scenario implemented on screenshot:
Unattempted
Nothing happens to the file itself (like deletion or moving, or changing the owner). The scenario implemented on screenshot:
Question 46 of 60
46. Question
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?
Correct
Reverse DNS is a DNS lookup of a domain name from an IP address. While a regular DNS request resolves an IP address from a domain name, rDNS does the opposite, hence the name reverse. A PTR record is used to perform reverse DNS lookups. Pointer records are configured within Address and Routing Parameter Area (in-addr.arpa) domains. If there is no PTR record set up, a reverse DNS lookup is unsuccessful. So for correct answer just reverse the numbers in IP address.
Incorrect
Reverse DNS is a DNS lookup of a domain name from an IP address. While a regular DNS request resolves an IP address from a domain name, rDNS does the opposite, hence the name reverse. A PTR record is used to perform reverse DNS lookups. Pointer records are configured within Address and Routing Parameter Area (in-addr.arpa) domains. If there is no PTR record set up, a reverse DNS lookup is unsuccessful. So for correct answer just reverse the numbers in IP address.
Unattempted
Reverse DNS is a DNS lookup of a domain name from an IP address. While a regular DNS request resolves an IP address from a domain name, rDNS does the opposite, hence the name reverse. A PTR record is used to perform reverse DNS lookups. Pointer records are configured within Address and Routing Parameter Area (in-addr.arpa) domains. If there is no PTR record set up, a reverse DNS lookup is unsuccessful. So for correct answer just reverse the numbers in IP address.
Question 47 of 60
47. Question
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?
Correct
You have the capability to change the file permissions by using numbers (3 numbers from 0 to 7). Where first number sets permissions for the file owner, second number sets permissions for the file group, third number sets permissions for everyone else. 6 => rw- [read, write, not execute] 5 => r-x [read, not write, execute] 4 => r– [read, not write, not execute] Long story short:
Incorrect
You have the capability to change the file permissions by using numbers (3 numbers from 0 to 7). Where first number sets permissions for the file owner, second number sets permissions for the file group, third number sets permissions for everyone else. 6 => rw- [read, write, not execute] 5 => r-x [read, not write, execute] 4 => r– [read, not write, not execute] Long story short:
Unattempted
You have the capability to change the file permissions by using numbers (3 numbers from 0 to 7). Where first number sets permissions for the file owner, second number sets permissions for the file group, third number sets permissions for everyone else. 6 => rw- [read, write, not execute] 5 => r-x [read, not write, execute] 4 => r– [read, not write, not execute] Long story short:
Question 48 of 60
48. Question
Which of the following outputs comes from the command free?
Correct
The easiest (and the most obvious) way to check the answer is to launch free command in Linux terminal.
Incorrect
The easiest (and the most obvious) way to check the answer is to launch free command in Linux terminal.
Unattempted
The easiest (and the most obvious) way to check the answer is to launch free command in Linux terminal.
Question 49 of 60
49. Question
Which of the following commands puts the lines of the file data.csv into alphabetical order?
Correct
sort is the command, used for arranging lines in an alphabetical order
Incorrect
sort is the command, used for arranging lines in an alphabetical order
Unattempted
sort is the command, used for arranging lines in an alphabetical order
Question 50 of 60
50. Question
Which of the following types of bus can connect hard disk drives with the motherboard?
Correct
I‘d personally love it to be a autobus. But, no. It‘s The SATA bus The red cable in the picture is an implementation of it:
Incorrect
I‘d personally love it to be a autobus. But, no. It‘s The SATA bus The red cable in the picture is an implementation of it:
Unattempted
I‘d personally love it to be a autobus. But, no. It‘s The SATA bus The red cable in the picture is an implementation of it:
Question 51 of 60
51. Question
Which of the following statements regarding Linux hardware drivers is correct?
Correct
Linux hardware drivers are about its kernel, not computer BIOS, not user‘s programs
Incorrect
Linux hardware drivers are about its kernel, not computer BIOS, not user‘s programs
Unattempted
Linux hardware drivers are about its kernel, not computer BIOS, not user‘s programs
Question 52 of 60
52. Question
Which of the following permissions are set on the /tmp/ directory?
Correct
This directory contains mostly files that are required temporarily. Many programs use this to create lock files and for temporary storage of data. Which means that it‘s the best for it to have the maximum privileges by default. It is actually the default shared directory (with set up sticky bit, btw).
Incorrect
This directory contains mostly files that are required temporarily. Many programs use this to create lock files and for temporary storage of data. Which means that it‘s the best for it to have the maximum privileges by default. It is actually the default shared directory (with set up sticky bit, btw).
Unattempted
This directory contains mostly files that are required temporarily. Many programs use this to create lock files and for temporary storage of data. Which means that it‘s the best for it to have the maximum privileges by default. It is actually the default shared directory (with set up sticky bit, btw).
Question 53 of 60
53. Question
A directory contains the following three files: texts 1.txt texts 2.txt texts 3.csv Which command copies the two files ending in .txt to the /tmp/ directory?
Correct
The asterisk symbol is the alias for any string (any file name in our case). The question mark (?) is the alias for only one sign/letter.
Incorrect
The asterisk symbol is the alias for any string (any file name in our case). The question mark (?) is the alias for only one sign/letter.
Unattempted
The asterisk symbol is the alias for any string (any file name in our case). The question mark (?) is the alias for only one sign/letter.
Question 54 of 60
54. Question
How is a new Linux computing instance provisioned in an laaS cloud?
Correct
In cloud computing, the cloud service provider owns, manages and maintains the assets; the customer consumes them via an Internet connection, and pays for them on a subscription or pay-as-you-go basis. So in Linux this idea is implemented by provider-specific configuration file.
Incorrect
In cloud computing, the cloud service provider owns, manages and maintains the assets; the customer consumes them via an Internet connection, and pays for them on a subscription or pay-as-you-go basis. So in Linux this idea is implemented by provider-specific configuration file.
Unattempted
In cloud computing, the cloud service provider owns, manages and maintains the assets; the customer consumes them via an Internet connection, and pays for them on a subscription or pay-as-you-go basis. So in Linux this idea is implemented by provider-specific configuration file.
Question 55 of 60
55. Question
Which of the following tar options handle compression? (Choose two correct answers.)
Correct
The tar command is an archiving utility. -g option handles new GNU-format incremental backup -b option BLOCKS x 512 bytes per record So -z and -j options handle archiving in tar utility. You can find more help on this question by typing tar –help in Linux console.
Incorrect
The tar command is an archiving utility. -g option handles new GNU-format incremental backup -b option BLOCKS x 512 bytes per record So -z and -j options handle archiving in tar utility. You can find more help on this question by typing tar –help in Linux console.
Unattempted
The tar command is an archiving utility. -g option handles new GNU-format incremental backup -b option BLOCKS x 512 bytes per record So -z and -j options handle archiving in tar utility. You can find more help on this question by typing tar –help in Linux console.
Question 56 of 60
56. Question
Which command displays file names only and no additional information?
Correct
The ‘-l‘ optoin in the ls command is used for a long listing format (so-called table view), which has a lot of extra info about files and folders. So, correct answer should not use -l option. While ‘-a‘ option stands for ‘all‘ (include in the output the entries starting with the dot).
Incorrect
The ‘-l‘ optoin in the ls command is used for a long listing format (so-called table view), which has a lot of extra info about files and folders. So, correct answer should not use -l option. While ‘-a‘ option stands for ‘all‘ (include in the output the entries starting with the dot).
Unattempted
The ‘-l‘ optoin in the ls command is used for a long listing format (so-called table view), which has a lot of extra info about files and folders. So, correct answer should not use -l option. While ‘-a‘ option stands for ‘all‘ (include in the output the entries starting with the dot).
Question 57 of 60
57. Question
A directory contains the following files: a.txt b.txt c.cav
What would be the output of the following shell script?
for file in *.txt do echo $file done
Correct
This question is about some general programming concepts. It starts from the for loop, which goes through all the files with the txt extension. And within the loops body, what it does is only outputs the file name. So, in the correct answer, we will have only the names of the files that have this extension.
Incorrect
This question is about some general programming concepts. It starts from the for loop, which goes through all the files with the txt extension. And within the loops body, what it does is only outputs the file name. So, in the correct answer, we will have only the names of the files that have this extension.
Unattempted
This question is about some general programming concepts. It starts from the for loop, which goes through all the files with the txt extension. And within the loops body, what it does is only outputs the file name. So, in the correct answer, we will have only the names of the files that have this extension.
Question 58 of 60
58. Question
Which of the following commands are used to get information on the proper use of ls? (Choose two.)
Correct
The man command is used to call the full user manual for other commands. The info command is kind of the same, but also has basic hyperlinking features and a simpler markup language to use. So, these are the commands used to get information on the proper use of any other command.
Incorrect
The man command is used to call the full user manual for other commands. The info command is kind of the same, but also has basic hyperlinking features and a simpler markup language to use. So, these are the commands used to get information on the proper use of any other command.
Unattempted
The man command is used to call the full user manual for other commands. The info command is kind of the same, but also has basic hyperlinking features and a simpler markup language to use. So, these are the commands used to get information on the proper use of any other command.
Question 59 of 60
59. Question
Which of the following statements are true regarding a typical shell script?
Correct
There‘s no restrictions for executable file location in Linux. It‘s a good and common practice to start the script file with the two character sequence #! (which is called ‘shebang‘). Though it can be run without shebang. A script cannot run without an executable permission bit set. A script is not compiled code, it‘s a mere text file.
Incorrect
There‘s no restrictions for executable file location in Linux. It‘s a good and common practice to start the script file with the two character sequence #! (which is called ‘shebang‘). Though it can be run without shebang. A script cannot run without an executable permission bit set. A script is not compiled code, it‘s a mere text file.
Unattempted
There‘s no restrictions for executable file location in Linux. It‘s a good and common practice to start the script file with the two character sequence #! (which is called ‘shebang‘). Though it can be run without shebang. A script cannot run without an executable permission bit set. A script is not compiled code, it‘s a mere text file.
Question 60 of 60
60. Question
What can be found in the /proc/ directory?
Correct
Obviously, ‘proc‘ stands for process. On this screenshot these blue numbers are the folders for the running processes:
Incorrect
Obviously, ‘proc‘ stands for process. On this screenshot these blue numbers are the folders for the running processes:
Unattempted
Obviously, ‘proc‘ stands for process. On this screenshot these blue numbers are the folders for the running processes:
X
Use Page numbers below to navigate to other practice tests