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" Linux LPIC-1 (101-500) Practice Test 5 "
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
Linux LPIC-1 (101-500)
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
The system administrator wants to keep the command that displays the system memory and swap usage always running and visible, with the results being updated every 5 seconds. Which of the following commands will meet this need?
Correct
The watch command can be used with any command, so that it is replayed constantly, the default time is 2 seconds, but the -n option allows you to set the update time. The free command displays the RAM and System Swap usage, the -m option shows the value in Mega.
Incorrect
The watch command can be used with any command, so that it is replayed constantly, the default time is 2 seconds, but the -n option allows you to set the update time. The free command displays the RAM and System Swap usage, the -m option shows the value in Mega.
Unattempted
The watch command can be used with any command, so that it is replayed constantly, the default time is 2 seconds, but the -n option allows you to set the update time. The free command displays the RAM and System Swap usage, the -m option shows the value in Mega.
Question 2 of 60
2. Question
On a system with OpenSuse, which command should be used to install the ksh package?
Correct
Zypper is the rpm package manager used in OpenSuse systems. The options are similar to yum, but not the same. In general there is a long option, for example “zypper install ksh“ or short, “zypper in ksh“.
Incorrect
Zypper is the rpm package manager used in OpenSuse systems. The options are similar to yum, but not the same. In general there is a long option, for example “zypper install ksh“ or short, “zypper in ksh“.
Unattempted
Zypper is the rpm package manager used in OpenSuse systems. The options are similar to yum, but not the same. In general there is a long option, for example “zypper install ksh“ or short, “zypper in ksh“.
Question 3 of 60
3. Question
On a Red Hat system, the new-software package is already installed, however, the administrator has received the new-softwareV2.rpm file, with a new version of the application. Which command should be used to update this package from this rpm file?
Correct
In the rpm command, used for direct installation of .rpm packages, the -U option can be used to install or update a package that already exists. The rpm -i option will only perform a fresh install, but will not update a package that is already installed. The –force option forces the installation of a package, for example the command “rpm -ivh –force new-software.rpm“ would force reinstallation of the new-software.rpm package, overwriting the previous files, in other words, it doesnÂ’t upgrade to a new version.
Incorrect
In the rpm command, used for direct installation of .rpm packages, the -U option can be used to install or update a package that already exists. The rpm -i option will only perform a fresh install, but will not update a package that is already installed. The –force option forces the installation of a package, for example the command “rpm -ivh –force new-software.rpm“ would force reinstallation of the new-software.rpm package, overwriting the previous files, in other words, it doesnÂ’t upgrade to a new version.
Unattempted
In the rpm command, used for direct installation of .rpm packages, the -U option can be used to install or update a package that already exists. The rpm -i option will only perform a fresh install, but will not update a package that is already installed. The –force option forces the installation of a package, for example the command “rpm -ivh –force new-software.rpm“ would force reinstallation of the new-software.rpm package, overwriting the previous files, in other words, it doesnÂ’t upgrade to a new version.
Question 4 of 60
4. Question
If you want to set variable VAR1 with the value “Linux Certification“, which command should be used?
Correct
When thereÂ’s more than one string in the variable, they must be grouped by quotation marks. CanÂ’t have any spaces before or after the = signal.
Incorrect
When thereÂ’s more than one string in the variable, they must be grouped by quotation marks. CanÂ’t have any spaces before or after the = signal.
Unattempted
When thereÂ’s more than one string in the variable, they must be grouped by quotation marks. CanÂ’t have any spaces before or after the = signal.
Question 5 of 60
5. Question
Which command can be used to show only the exported variables in a shell section?
Correct
The command env show only the exported variables, while the comand set shows even local variables.
Incorrect
The command env show only the exported variables, while the comand set shows even local variables.
Unattempted
The command env show only the exported variables, while the comand set shows even local variables.
Question 6 of 60
6. Question
Which command will have the following output when used “cd“ as argument? # cd cd is a shell builtin
Correct
? C. type The type command is used to display information about how the shell will interpret a given command. When you execute type cd, the output cd is a shell builtin precisely indicates that cd is not an external executable but rather a command built directly into the shell (like Bash or Zsh). This is the exact output specified in the question.
? A. file The file command is used to determine the file type of files. When given cd as an argument (and if cd refers to a file, which it typically doesn‘t as it‘s a builtin), it would try to identify its content type (e.g., “ASCII text“, “ELF 64-bit LSB executable“). It would not state “cd is a shell builtin.“
? B. which The which command displays the full path of (shell) commands. If cd were an executable file found in the system‘s PATH, which cd would output its full path (e.g., /usr/bin/cd, though cd is usually a builtin). However, for a shell builtin, which typically returns nothing or an error, as it doesn‘t exist as a separate executable file. It would certainly not state “cd is a shell builtin.“
? D. whatis The whatis command displays a very brief description of a command (from the man pages). For cd, it might output something like “cd (1) – change the working directory“. It would not provide information about cd being a “shell builtin.“
Incorrect
? C. type The type command is used to display information about how the shell will interpret a given command. When you execute type cd, the output cd is a shell builtin precisely indicates that cd is not an external executable but rather a command built directly into the shell (like Bash or Zsh). This is the exact output specified in the question.
? A. file The file command is used to determine the file type of files. When given cd as an argument (and if cd refers to a file, which it typically doesn‘t as it‘s a builtin), it would try to identify its content type (e.g., “ASCII text“, “ELF 64-bit LSB executable“). It would not state “cd is a shell builtin.“
? B. which The which command displays the full path of (shell) commands. If cd were an executable file found in the system‘s PATH, which cd would output its full path (e.g., /usr/bin/cd, though cd is usually a builtin). However, for a shell builtin, which typically returns nothing or an error, as it doesn‘t exist as a separate executable file. It would certainly not state “cd is a shell builtin.“
? D. whatis The whatis command displays a very brief description of a command (from the man pages). For cd, it might output something like “cd (1) – change the working directory“. It would not provide information about cd being a “shell builtin.“
Unattempted
? C. type The type command is used to display information about how the shell will interpret a given command. When you execute type cd, the output cd is a shell builtin precisely indicates that cd is not an external executable but rather a command built directly into the shell (like Bash or Zsh). This is the exact output specified in the question.
? A. file The file command is used to determine the file type of files. When given cd as an argument (and if cd refers to a file, which it typically doesn‘t as it‘s a builtin), it would try to identify its content type (e.g., “ASCII text“, “ELF 64-bit LSB executable“). It would not state “cd is a shell builtin.“
? B. which The which command displays the full path of (shell) commands. If cd were an executable file found in the system‘s PATH, which cd would output its full path (e.g., /usr/bin/cd, though cd is usually a builtin). However, for a shell builtin, which typically returns nothing or an error, as it doesn‘t exist as a separate executable file. It would certainly not state “cd is a shell builtin.“
? D. whatis The whatis command displays a very brief description of a command (from the man pages). For cd, it might output something like “cd (1) – change the working directory“. It would not provide information about cd being a “shell builtin.“
Question 7 of 60
7. Question
Which command can be used to show only the duplicate lines of an already sorted text file?
Correct
The command “uniq -d“ shows only the duplicate lines as long as the file is sorted. “Uniq -u“ has the opposite effect and shows only the unique lines, sort -d sorts only blank lines and alphanumeric characters, and -r sorts in reverse order.
Incorrect
The command “uniq -d“ shows only the duplicate lines as long as the file is sorted. “Uniq -u“ has the opposite effect and shows only the unique lines, sort -d sorts only blank lines and alphanumeric characters, and -r sorts in reverse order.
Unattempted
The command “uniq -d“ shows only the duplicate lines as long as the file is sorted. “Uniq -u“ has the opposite effect and shows only the unique lines, sort -d sorts only blank lines and alphanumeric characters, and -r sorts in reverse order.
Question 8 of 60
8. Question
Which commands will always switch to the default directory of the current user? (Select 3)
Correct
When using “cd“ and “cd ~“ the user returns to his default directory. Because the value of the $ HOME variable is the user‘s default directory, “cd $ HOME“ has the same effect. The “cd -“ returns to the previous directory, and $ USER contains only the username.
Incorrect
When using “cd“ and “cd ~“ the user returns to his default directory. Because the value of the $ HOME variable is the user‘s default directory, “cd $ HOME“ has the same effect. The “cd -“ returns to the previous directory, and $ USER contains only the username.
Unattempted
When using “cd“ and “cd ~“ the user returns to his default directory. Because the value of the $ HOME variable is the user‘s default directory, “cd $ HOME“ has the same effect. The “cd -“ returns to the previous directory, and $ USER contains only the username.
Question 9 of 60
9. Question
Which command will create all the directories of the tree course/class1/exercises at one time?
Correct
The -p option in the mkdir causes the entire tree to be created. Without this option an error would occur because of the lack of the course and class1 directories.
Incorrect
The -p option in the mkdir causes the entire tree to be created. Without this option an error would occur because of the lack of the course and class1 directories.
Unattempted
The -p option in the mkdir causes the entire tree to be created. Without this option an error would occur because of the lack of the course and class1 directories.
Question 10 of 60
10. Question
Which command will return all files that begin with the “report“ string and end with “csv“ and which are located in the /usr directory?
Correct
In this case, the find command should be used with the syntax “find“ “. The character * means that any character (or group of) can be between “report“ and “csv“. In this find command, que quotes must be used because of the use of *. The “iname“ also could be used, because is the same of “name“, but being case insensitve.
Incorrect
In this case, the find command should be used with the syntax “find“ “. The character * means that any character (or group of) can be between “report“ and “csv“. In this find command, que quotes must be used because of the use of *. The “iname“ also could be used, because is the same of “name“, but being case insensitve.
Unattempted
In this case, the find command should be used with the syntax “find“ “. The character * means that any character (or group of) can be between “report“ and “csv“. In this find command, que quotes must be used because of the use of *. The “iname“ also could be used, because is the same of “name“, but being case insensitve.
Question 11 of 60
11. Question
Which command will send to the program “generate-report“ the “data“ file as input and register the error logs in the file “errors.log“?
Correct
The < symbol indicates that “data“ will be the input of the “generate-report“ command, while the “2>“ symbol indicates that the error output (stderr) will be sent to the errors.log file.
Incorrect
The < symbol indicates that “data“ will be the input of the “generate-report“ command, while the “2>“ symbol indicates that the error output (stderr) will be sent to the errors.log file.
Unattempted
The < symbol indicates that “data“ will be the input of the “generate-report“ command, while the “2>“ symbol indicates that the error output (stderr) will be sent to the errors.log file.
Question 12 of 60
12. Question
In Linux, what is the numeric value for the output (sterr) descriptor?
Correct
0 is the standard input descriptor (stdin), 1 is the standard output descriptor (stdout) and 2 is the output error (stderr).
Incorrect
0 is the standard input descriptor (stdin), 1 is the standard output descriptor (stdout) and 2 is the output error (stderr).
Unattempted
0 is the standard input descriptor (stdin), 1 is the standard output descriptor (stdout) and 2 is the output error (stderr).
Question 13 of 60
13. Question
How can you write the phrase “We are now in hour XX and minute YY“ so that a single command always shows the hours and minutes updated from the date command.
Correct
There are two possible syntaxes to execute a command inside another, using the command between quotes (not single quotes), for example ′command′, or use the command inside $(command). Note that the use of single quotation marks at the beginning and end of a sentence will cause the sub commands to not be executed. Also note the syntax of date options that should be date +%X.
Incorrect
There are two possible syntaxes to execute a command inside another, using the command between quotes (not single quotes), for example ′command′, or use the command inside $(command). Note that the use of single quotation marks at the beginning and end of a sentence will cause the sub commands to not be executed. Also note the syntax of date options that should be date +%X.
Unattempted
There are two possible syntaxes to execute a command inside another, using the command between quotes (not single quotes), for example ′command′, or use the command inside $(command). Note that the use of single quotation marks at the beginning and end of a sentence will cause the sub commands to not be executed. Also note the syntax of date options that should be date +%X.
Question 14 of 60
14. Question
Which of the following commands will send the output of the application program to the log.out file and to the standard output (screen) of the user?
Correct
The function of the tee command is to receive an input, usually the output of another command with the use of |, display this input on the screen and at the same time write it to a file.
Incorrect
The function of the tee command is to receive an input, usually the output of another command with the use of |, display this input on the screen and at the same time write it to a file.
Unattempted
The function of the tee command is to receive an input, usually the output of another command with the use of |, display this input on the screen and at the same time write it to a file.
Question 15 of 60
15. Question
What commands can be used to kill a process by its name? (Select 2)
Correct
The pkill and killall commands use the name of the process as an argument, pkill allows several other variables such as the user name of the process owner, for example. The kill uses the PID as argument, pgrep only shows the PID of a process.
Incorrect
The pkill and killall commands use the name of the process as an argument, pkill allows several other variables such as the user name of the process owner, for example. The kill uses the PID as argument, pgrep only shows the PID of a process.
Unattempted
The pkill and killall commands use the name of the process as an argument, pkill allows several other variables such as the user name of the process owner, for example. The kill uses the PID as argument, pgrep only shows the PID of a process.
Question 16 of 60
16. Question
Which command can be used to download a RPM package, without the need to install?
Correct
The command “yum install –downloadonly “ will only download an rpm package from the configured repositories, but will not install it.
Incorrect
The command “yum install –downloadonly “ will only download an rpm package from the configured repositories, but will not install it.
Unattempted
The command “yum install –downloadonly “ will only download an rpm package from the configured repositories, but will not install it.
Question 17 of 60
17. Question
What is the default signal sent by the kill command to a process?
Correct
Without any parameter, kill sends the SIGTERM signal, code 15, this signal kills the process in a soft way, giving the process time to complete its tasks.
Incorrect
Without any parameter, kill sends the SIGTERM signal, code 15, this signal kills the process in a soft way, giving the process time to complete its tasks.
Unattempted
Without any parameter, kill sends the SIGTERM signal, code 15, this signal kills the process in a soft way, giving the process time to complete its tasks.
Question 18 of 60
18. Question
Which command shows the list of all tasks executed in the background in the current shell?
Correct
The jobs command shows all processes (or set of them) started in the background, using & in the current session.
Incorrect
The jobs command shows all processes (or set of them) started in the background, using & in the current session.
Unattempted
The jobs command shows all processes (or set of them) started in the background, using & in the current session.
Question 19 of 60
19. Question
What is the value used in the “nice” command to start a process with the highest possible priority?
Correct
The “nice” of a process can be configured with values ranging from -20 to 19, where -20 increases the priority to the maximum, and 19 decreases to the maximum.
Incorrect
The “nice” of a process can be configured with values ranging from -20 to 19, where -20 increases the priority to the maximum, and 19 decreases to the maximum.
Unattempted
The “nice” of a process can be configured with values ranging from -20 to 19, where -20 increases the priority to the maximum, and 19 decreases to the maximum.
Question 20 of 60
20. Question
Consider the execution of the command below: # renice -15 9999 What was the “nice” value set to the process?
Correct
The renice syntax is: renice NICE_VALUE PID, so -15 is the “nice” value -15. Note that the syntax of the “nice” command is a bit different: nice -NICE_VALUE command, so if “nice -15” command is used, the “nice” value associated with the command would be 15.
Incorrect
The renice syntax is: renice NICE_VALUE PID, so -15 is the “nice” value -15. Note that the syntax of the “nice” command is a bit different: nice -NICE_VALUE command, so if “nice -15” command is used, the “nice” value associated with the command would be 15.
Unattempted
The renice syntax is: renice NICE_VALUE PID, so -15 is the “nice” value -15. Note that the syntax of the “nice” command is a bit different: nice -NICE_VALUE command, so if “nice -15” command is used, the “nice” value associated with the command would be 15.
Question 21 of 60
21. Question
Which command can be used to count the number of rows in which the word “Linux“ appears in the result.log file?
Correct
In grep, the -c option counts the occurrences of the string, in how many lines the string appeared. The -l shows the files that have a certain string. fgrep is a grep that does not accept any type of regular expression. Egrep is a grep that accepts extended regular expressions but the -n option would only include a number in the rows of the result.
Incorrect
In grep, the -c option counts the occurrences of the string, in how many lines the string appeared. The -l shows the files that have a certain string. fgrep is a grep that does not accept any type of regular expression. Egrep is a grep that accepts extended regular expressions but the -n option would only include a number in the rows of the result.
Unattempted
In grep, the -c option counts the occurrences of the string, in how many lines the string appeared. The -l shows the files that have a certain string. fgrep is a grep that does not accept any type of regular expression. Egrep is a grep that accepts extended regular expressions but the -n option would only include a number in the rows of the result.
Question 22 of 60
22. Question
The student.txt file contains a list with full names of students in the course. Which command will return the full name only of students whose first name is Carlos.
Correct
The ^ character always indicates something at the beginning of the line. The $ character indicates the end of a line. The grep -v would exclude every occurrence of the word Carlos. Egrep ^carlos has the first lowercase letter, since the function is case-sensitive, the string Carlos would not be found.
Incorrect
The ^ character always indicates something at the beginning of the line. The $ character indicates the end of a line. The grep -v would exclude every occurrence of the word Carlos. Egrep ^carlos has the first lowercase letter, since the function is case-sensitive, the string Carlos would not be found.
Unattempted
The ^ character always indicates something at the beginning of the line. The $ character indicates the end of a line. The grep -v would exclude every occurrence of the word Carlos. Egrep ^carlos has the first lowercase letter, since the function is case-sensitive, the string Carlos would not be found.
Question 23 of 60
23. Question
You are in the VI editor, in navigation mode, and want to delete the current line and the following 20 lines. Which key set can be used?
Correct
Attention, because the statement says that the current line and the next 20 lines, that is, 21 lines, must be erased, in this way the 21dd or d21d commands can be used.
Incorrect
Attention, because the statement says that the current line and the next 20 lines, that is, 21 lines, must be erased, in this way the 21dd or d21d commands can be used.
Unattempted
Attention, because the statement says that the current line and the next 20 lines, that is, 21 lines, must be erased, in this way the 21dd or d21d commands can be used.
Question 24 of 60
24. Question
Which command can be used to verify the inode usage of the /dev/sdb1 partition, mounted in the /usr directory?
Correct
The df command is used to check the use of a partition, usually shows the disk space, but with the -i option it displays the use of inodes. This information can also be checked with “tune2fs -l“ command.
Incorrect
The df command is used to check the use of a partition, usually shows the disk space, but with the -i option it displays the use of inodes. This information can also be checked with “tune2fs -l“ command.
Unattempted
The df command is used to check the use of a partition, usually shows the disk space, but with the -i option it displays the use of inodes. This information can also be checked with “tune2fs -l“ command.
Question 25 of 60
25. Question
In the /etc/fstab configuration file, which option determines that the partition can be mounted and dismounted by any user on the system, even if it wasnÂ’t him the one who initially set up the partition?
Correct
The “users“ option does what is described in the statement, the “user“ option allows any user to mount a partition, but only the user who mounted it can unmount it. The nouser causes ordinary users to not mount the partition, remount reassembles a partition already mounted, without having to unmount it.
Incorrect
The “users“ option does what is described in the statement, the “user“ option allows any user to mount a partition, but only the user who mounted it can unmount it. The nouser causes ordinary users to not mount the partition, remount reassembles a partition already mounted, without having to unmount it.
Unattempted
The “users“ option does what is described in the statement, the “user“ option allows any user to mount a partition, but only the user who mounted it can unmount it. The nouser causes ordinary users to not mount the partition, remount reassembles a partition already mounted, without having to unmount it.
Question 26 of 60
26. Question
Which command should be used to manually mount the /dev/sdb1 device in the /mnt/backup directory?
Correct
Mount is the command used to manually mount a partition to a directory, with the syntax: mount
Incorrect
Mount is the command used to manually mount a partition to a directory, with the syntax: mount
Unattempted
Mount is the command used to manually mount a partition to a directory, with the syntax: mount
Question 27 of 60
27. Question
Which command can be used to check the mount points active by systemd?
Correct
In systemd, a mount point is a type of Unit, so just use the list-units option of systemctl specifying the type “mount“.
Incorrect
In systemd, a mount point is a type of Unit, so just use the list-units option of systemctl specifying the type “mount“.
Unattempted
In systemd, a mount point is a type of Unit, so just use the list-units option of systemctl specifying the type “mount“.
Question 28 of 60
28. Question
Which of the commands bellow can be used to define the support group to the file access.txt? (Select 3)
Correct
The chgrp command is specific for group definition with the syntax: chgrp . The chown command can be used to set the user owner and the group, accepting the following syntaxes: chown : ou chown . , where the can be ommited.
Incorrect
The chgrp command is specific for group definition with the syntax: chgrp . The chown command can be used to set the user owner and the group, accepting the following syntaxes: chown : ou chown . , where the can be ommited.
Unattempted
The chgrp command is specific for group definition with the syntax: chgrp . The chown command can be used to set the user owner and the group, accepting the following syntaxes: chown : ou chown . , where the can be ommited.
Question 29 of 60
29. Question
Which of the following umask settings will cause every new file created to have the 664 (rw-rw-r–) permission?
Correct
Permissions are set by subtracting the umask value from value 666 for files and 777 for directories. Thus, the value 0002, which may also appear as 002, will be 666 – 002 = 664 (rw-rw-r–).
Incorrect
Permissions are set by subtracting the umask value from value 666 for files and 777 for directories. Thus, the value 0002, which may also appear as 002, will be 666 – 002 = 664 (rw-rw-r–).
Unattempted
Permissions are set by subtracting the umask value from value 666 for files and 777 for directories. Thus, the value 0002, which may also appear as 002, will be 666 – 002 = 664 (rw-rw-r–).
Question 30 of 60
30. Question
Which command will allow the example.txt file to be read and modified by its owner and members of its group, but no other system user can perform such operations?
Correct
The value 6 corresponds to the permissions r and w, read and write. In this way, 660 enables read and write for users and groups, but no permissions for other users of the system.
Incorrect
The value 6 corresponds to the permissions r and w, read and write. In this way, 660 enables read and write for users and groups, but no permissions for other users of the system.
Unattempted
The value 6 corresponds to the permissions r and w, read and write. In this way, 660 enables read and write for users and groups, but no permissions for other users of the system.
Question 31 of 60
31. Question
In VI, which of the following commands can be used to save a document and, right after, leave the text editor? (Select 3)
Correct
The commands :wq, 😡 and ZZ will save the document and leave VI. :q! leaves without save and XX doesn’t exist.
Incorrect
The commands :wq, 😡 and ZZ will save the document and leave VI. :q! leaves without save and XX doesn’t exist.
Unattempted
The commands :wq, 😡 and ZZ will save the document and leave VI. :q! leaves without save and XX doesn’t exist.
Question 32 of 60
32. Question
You are tasked with checking the status of the httpd service on a Linux server that uses systemd. Which systemctl command should you use to retrieve detailed status information about the httpd service?
Correct
Correct Answer: C. systemctl status httpd Explanation: The systemctl status command provides detailed information about a specific service, including whether it‘s active, its main PID, and recent log entries. Option A is incorrect. systemctl show provides property information about a unit, but not the detailed status information that systemctl status provides. Option B is incorrect. systemctl list is not a valid systemctl command. Option D is incorrect. systemctl info is not a valid command in systemd.
Incorrect
Correct Answer: C. systemctl status httpd Explanation: The systemctl status command provides detailed information about a specific service, including whether it‘s active, its main PID, and recent log entries. Option A is incorrect. systemctl show provides property information about a unit, but not the detailed status information that systemctl status provides. Option B is incorrect. systemctl list is not a valid systemctl command. Option D is incorrect. systemctl info is not a valid command in systemd.
Unattempted
Correct Answer: C. systemctl status httpd Explanation: The systemctl status command provides detailed information about a specific service, including whether it‘s active, its main PID, and recent log entries. Option A is incorrect. systemctl show provides property information about a unit, but not the detailed status information that systemctl status provides. Option B is incorrect. systemctl list is not a valid systemctl command. Option D is incorrect. systemctl info is not a valid command in systemd.
Question 33 of 60
33. Question
After a routine check, Carlos, an experienced system administrator, notices that one of the application servers is about to run out of disk space. He decides to alert all users to save their work and logout. Carlos types a message into a file called alert.txt. How can he use the wall command to broadcast this message to all users?
Correct
Correct Answer: B. wall < alert.txt Explanation: To send a message saved in a file to all users using the wall command, Carlos can redirect the content of the file as input to wall. This is accomplished with the < redirection operator. Option A is incorrect. The -f option does not exist for the wall command. Option C is incorrect. The -m option does not exist for the wall command. Option D is incorrect. The --message option does not exist for the wall command.
Incorrect
Correct Answer: B. wall < alert.txt Explanation: To send a message saved in a file to all users using the wall command, Carlos can redirect the content of the file as input to wall. This is accomplished with the < redirection operator. Option A is incorrect. The -f option does not exist for the wall command. Option C is incorrect. The -m option does not exist for the wall command. Option D is incorrect. The --message option does not exist for the wall command.
Unattempted
Correct Answer: B. wall < alert.txt Explanation: To send a message saved in a file to all users using the wall command, Carlos can redirect the content of the file as input to wall. This is accomplished with the < redirection operator. Option A is incorrect. The -f option does not exist for the wall command. Option C is incorrect. The -m option does not exist for the wall command. Option D is incorrect. The --message option does not exist for the wall command.
Question 34 of 60
34. Question
Samantha recently installed a package called timezone-data on her Debian system. She realized that she mistakenly chose the wrong timezone during the configuration. Which command should she run to reconfigure the package and select the correct timezone?
Correct
Correct Answer: B. dpkg-reconfigure timezone-data Explanation: The dpkg-reconfigure command allows users to reconfigure packages that have been previously installed and configured. If Samantha wants to reconfigure the timezone-data package, she should use the dpkg-reconfigure timezone-data command. Option A is incorrect. There is no -reconfig option for dpkg. The correct command is dpkg-reconfigure. Option C is incorrect. dpkg –configure configures unpacked packages, but it doesn‘t provide the interactive reconfiguration interface like dpkg-reconfigure. Option D is incorrect. There is no –reset option for dpkg.
Incorrect
Correct Answer: B. dpkg-reconfigure timezone-data Explanation: The dpkg-reconfigure command allows users to reconfigure packages that have been previously installed and configured. If Samantha wants to reconfigure the timezone-data package, she should use the dpkg-reconfigure timezone-data command. Option A is incorrect. There is no -reconfig option for dpkg. The correct command is dpkg-reconfigure. Option C is incorrect. dpkg –configure configures unpacked packages, but it doesn‘t provide the interactive reconfiguration interface like dpkg-reconfigure. Option D is incorrect. There is no –reset option for dpkg.
Unattempted
Correct Answer: B. dpkg-reconfigure timezone-data Explanation: The dpkg-reconfigure command allows users to reconfigure packages that have been previously installed and configured. If Samantha wants to reconfigure the timezone-data package, she should use the dpkg-reconfigure timezone-data command. Option A is incorrect. There is no -reconfig option for dpkg. The correct command is dpkg-reconfigure. Option C is incorrect. dpkg –configure configures unpacked packages, but it doesn‘t provide the interactive reconfiguration interface like dpkg-reconfigure. Option D is incorrect. There is no –reset option for dpkg.
Question 35 of 60
35. Question
Robert is working on a Debian-based system and has received a .deb package named software-package.deb. He wants to install this package. Which of the following dpkg commands should he use to accomplish this?
Correct
Correct Answer: C. dpkg -i software-package.deb Explanation: The dpkg -i command is used to install a .deb package. In this scenario, Robert would use dpkg -i software-package.deb to install the provided package. Option A is incorrect. dpkg -c is used to list the contents of a .deb package and does not install it. Option B is incorrect. While dpkg –unpack unpacks the files from a package, it doesn‘t configure them. To fully install a package, the -i option is more appropriate as it unpacks and configures the package. Option D is incorrect. dpkg –search is used to search for a filename from installed packages and has nothing to do with installing a package.
Incorrect
Correct Answer: C. dpkg -i software-package.deb Explanation: The dpkg -i command is used to install a .deb package. In this scenario, Robert would use dpkg -i software-package.deb to install the provided package. Option A is incorrect. dpkg -c is used to list the contents of a .deb package and does not install it. Option B is incorrect. While dpkg –unpack unpacks the files from a package, it doesn‘t configure them. To fully install a package, the -i option is more appropriate as it unpacks and configures the package. Option D is incorrect. dpkg –search is used to search for a filename from installed packages and has nothing to do with installing a package.
Unattempted
Correct Answer: C. dpkg -i software-package.deb Explanation: The dpkg -i command is used to install a .deb package. In this scenario, Robert would use dpkg -i software-package.deb to install the provided package. Option A is incorrect. dpkg -c is used to list the contents of a .deb package and does not install it. Option B is incorrect. While dpkg –unpack unpacks the files from a package, it doesn‘t configure them. To fully install a package, the -i option is more appropriate as it unpacks and configures the package. Option D is incorrect. dpkg –search is used to search for a filename from installed packages and has nothing to do with installing a package.
Question 36 of 60
36. Question
Ella, a seasoned systems administrator, is teaching a junior team member about systemd. She explains that thereÂ’s a directory where vendor-provided system unit presets are placed. Which directory is she referring to?
Correct
Correct Answer: D. /usr/lib/systemd/system-preset/ Explanation: The /usr/lib/systemd/system-preset/ directory contains vendor-provided presets for systemd units. Presets are a way to manage the enablement state of unit files, determining which services should be enabled or disabled by default. Option A is incorrect. There is no default directory named /usr/lib/systemd/defaults/ for systemd. Option B is incorrect. The /usr/lib/systemd/presets/ directory does not exist as a default for storing vendor-provided system unit presets. Option C is incorrect. The /usr/lib/systemd/system-presets/ directory is not the standard directory for system unit presets.
Incorrect
Correct Answer: D. /usr/lib/systemd/system-preset/ Explanation: The /usr/lib/systemd/system-preset/ directory contains vendor-provided presets for systemd units. Presets are a way to manage the enablement state of unit files, determining which services should be enabled or disabled by default. Option A is incorrect. There is no default directory named /usr/lib/systemd/defaults/ for systemd. Option B is incorrect. The /usr/lib/systemd/presets/ directory does not exist as a default for storing vendor-provided system unit presets. Option C is incorrect. The /usr/lib/systemd/system-presets/ directory is not the standard directory for system unit presets.
Unattempted
Correct Answer: D. /usr/lib/systemd/system-preset/ Explanation: The /usr/lib/systemd/system-preset/ directory contains vendor-provided presets for systemd units. Presets are a way to manage the enablement state of unit files, determining which services should be enabled or disabled by default. Option A is incorrect. There is no default directory named /usr/lib/systemd/defaults/ for systemd. Option B is incorrect. The /usr/lib/systemd/presets/ directory does not exist as a default for storing vendor-provided system unit presets. Option C is incorrect. The /usr/lib/systemd/system-presets/ directory is not the standard directory for system unit presets.
Question 37 of 60
37. Question
Alice, a system administrator, wants to change the group ownership of the directory project_files and all its contents to the group developers. Which command should she use to accomplish this?
Correct
Correct Answer: B. chgrp -R developers project_files Explanation: The -R option in the chgrp command is used to operate on files and directories recursively. Hence, to change the group ownership of a directory and all its contents, the -R option should be used. Option A is incorrect. Without the ′-R′ option, only the directory‘s group ownership will be changed, and not its contents. Option C is incorrect. Though it contains the correct elements, the order of the arguments is not conventional, and while it might work on some systems, it‘s not the standard order. Option D is incorrect. The order of the arguments is incorrect. The group name should come before the target.
Incorrect
Correct Answer: B. chgrp -R developers project_files Explanation: The -R option in the chgrp command is used to operate on files and directories recursively. Hence, to change the group ownership of a directory and all its contents, the -R option should be used. Option A is incorrect. Without the ′-R′ option, only the directory‘s group ownership will be changed, and not its contents. Option C is incorrect. Though it contains the correct elements, the order of the arguments is not conventional, and while it might work on some systems, it‘s not the standard order. Option D is incorrect. The order of the arguments is incorrect. The group name should come before the target.
Unattempted
Correct Answer: B. chgrp -R developers project_files Explanation: The -R option in the chgrp command is used to operate on files and directories recursively. Hence, to change the group ownership of a directory and all its contents, the -R option should be used. Option A is incorrect. Without the ′-R′ option, only the directory‘s group ownership will be changed, and not its contents. Option C is incorrect. Though it contains the correct elements, the order of the arguments is not conventional, and while it might work on some systems, it‘s not the standard order. Option D is incorrect. The order of the arguments is incorrect. The group name should come before the target.
Question 38 of 60
38. Question
Brian needs to create an archive of all .txt files in the current directory using cpio and save it as documents.cpio. Which command sequence should he use to accomplish this?
Correct
Correct Answer: A. ls *.txt | cpio -o > documents.cpio Explanation: The cpio -o option is used to create an archive. The ls *.txt command lists all .txt files in the current directory. By piping (|) the output of ls to cpio -o, it tells cpio to archive the listed files. Option B is incorrect. The use of input redirection (′<′) with ′cpio -o′ is incorrect in this context. We want to feed the list of files to ′cpio′ using a pipe, not input redirection. Option C is incorrect. The ′-i′ option is used for extracting archives, not creating them. Option D is incorrect. The ′-i′ option, as stated earlier, is used for extracting, and input redirection is not used correctly here.
Incorrect
Correct Answer: A. ls *.txt | cpio -o > documents.cpio Explanation: The cpio -o option is used to create an archive. The ls *.txt command lists all .txt files in the current directory. By piping (|) the output of ls to cpio -o, it tells cpio to archive the listed files. Option B is incorrect. The use of input redirection (′<′) with ′cpio -o′ is incorrect in this context. We want to feed the list of files to ′cpio′ using a pipe, not input redirection. Option C is incorrect. The ′-i′ option is used for extracting archives, not creating them. Option D is incorrect. The ′-i′ option, as stated earlier, is used for extracting, and input redirection is not used correctly here.
Unattempted
Correct Answer: A. ls *.txt | cpio -o > documents.cpio Explanation: The cpio -o option is used to create an archive. The ls *.txt command lists all .txt files in the current directory. By piping (|) the output of ls to cpio -o, it tells cpio to archive the listed files. Option B is incorrect. The use of input redirection (′<′) with ′cpio -o′ is incorrect in this context. We want to feed the list of files to ′cpio′ using a pipe, not input redirection. Option C is incorrect. The ′-i′ option is used for extracting archives, not creating them. Option D is incorrect. The ′-i′ option, as stated earlier, is used for extracting, and input redirection is not used correctly here.
Question 39 of 60
39. Question
Jake wants to upgrade all currently installed packages on his Debian system without removing any packages or installing new ones. Which command should he use to accomplish this task?
Correct
Correct Answer: C. apt-get upgrade Explanation: The apt-get upgrade command is used to upgrade all currently installed packages on a Debian system. It will not remove any packages or install new ones. Option A is incorrect. There‘s no –upgrade-all option for the apt-get install command. Option B is incorrect. apt-get update fetches the list of available packages and their versions but doesn‘t upgrade any packages. Option D is incorrect. apt-get dist-upgrade upgrades packages, considering dependencies, and can also install new packages or remove existing ones to satisfy dependencies.
Incorrect
Correct Answer: C. apt-get upgrade Explanation: The apt-get upgrade command is used to upgrade all currently installed packages on a Debian system. It will not remove any packages or install new ones. Option A is incorrect. There‘s no –upgrade-all option for the apt-get install command. Option B is incorrect. apt-get update fetches the list of available packages and their versions but doesn‘t upgrade any packages. Option D is incorrect. apt-get dist-upgrade upgrades packages, considering dependencies, and can also install new packages or remove existing ones to satisfy dependencies.
Unattempted
Correct Answer: C. apt-get upgrade Explanation: The apt-get upgrade command is used to upgrade all currently installed packages on a Debian system. It will not remove any packages or install new ones. Option A is incorrect. There‘s no –upgrade-all option for the apt-get install command. Option B is incorrect. apt-get update fetches the list of available packages and their versions but doesn‘t upgrade any packages. Option D is incorrect. apt-get dist-upgrade upgrades packages, considering dependencies, and can also install new packages or remove existing ones to satisfy dependencies.
Question 40 of 60
40. Question
WhatÂ’s the first system partition that has to be mounted after the boot process?
Correct
The root directory (/) is the first partition that has to be mounted. After that, the system will have access to the main configuration files in /etc, like, for instance, the /etc/fstab, and, with that, will obtain information about the other partitions to be mounted.
Incorrect
The root directory (/) is the first partition that has to be mounted. After that, the system will have access to the main configuration files in /etc, like, for instance, the /etc/fstab, and, with that, will obtain information about the other partitions to be mounted.
Unattempted
The root directory (/) is the first partition that has to be mounted. After that, the system will have access to the main configuration files in /etc, like, for instance, the /etc/fstab, and, with that, will obtain information about the other partitions to be mounted.
Question 41 of 60
41. Question
Which of the following commands may help an user to find information and help about a command? (Select 3)
Correct
The commands “man” and “info” will show, in most of the cases, a whole manual about each command. “whatis” will bring a brief definition about the tool function.
Incorrect
The commands “man” and “info” will show, in most of the cases, a whole manual about each command. “whatis” will bring a brief definition about the tool function.
Unattempted
The commands “man” and “info” will show, in most of the cases, a whole manual about each command. “whatis” will bring a brief definition about the tool function.
Question 42 of 60
42. Question
Which commands will show the messages generated by “kernel” during the boot process in the system? (Select 3 answers)
Correct
The command dmesg has as an output a register of the logs in the system boot, the same information can be found in the file /var/log/dmesg, however, not all distributions currently include this file. In the journalctl, the -k options shows all the kernel messages from the current boot, the -b option can also be used but contains all messages, not only kernel related.
Incorrect
The command dmesg has as an output a register of the logs in the system boot, the same information can be found in the file /var/log/dmesg, however, not all distributions currently include this file. In the journalctl, the -k options shows all the kernel messages from the current boot, the -b option can also be used but contains all messages, not only kernel related.
Unattempted
The command dmesg has as an output a register of the logs in the system boot, the same information can be found in the file /var/log/dmesg, however, not all distributions currently include this file. In the journalctl, the -k options shows all the kernel messages from the current boot, the -b option can also be used but contains all messages, not only kernel related.
Question 43 of 60
43. Question
Inform the command that can be used to send a message to all users connected in the system at the same time.
Correct
“wall” will send the message that follows the command directly to the terminal where all the users are connected.
Incorrect
“wall” will send the message that follows the command directly to the terminal where all the users are connected.
Unattempted
“wall” will send the message that follows the command directly to the terminal where all the users are connected.
Question 44 of 60
44. Question
According to FHS, in which directory the system documentation files (man) are found?
Correct
The /usr/share contains many system files, including the documentation pages in /usr/share/doc and the manuals in /usr/share/man.
Incorrect
The /usr/share contains many system files, including the documentation pages in /usr/share/doc and the manuals in /usr/share/man.
Unattempted
The /usr/share contains many system files, including the documentation pages in /usr/share/doc and the manuals in /usr/share/man.
Question 45 of 60
45. Question
Which of the following options are NOT an init solution for Linux?
Correct
System V, or SysV, is the init that was originally used in Linux environments, inherited from Unix. Currently most distributions use the systemd and some use Upstart. Anacron is a process scheduling tool.
Incorrect
System V, or SysV, is the init that was originally used in Linux environments, inherited from Unix. Currently most distributions use the systemd and some use Upstart. Anacron is a process scheduling tool.
Unattempted
System V, or SysV, is the init that was originally used in Linux environments, inherited from Unix. Currently most distributions use the systemd and some use Upstart. Anacron is a process scheduling tool.
Question 46 of 60
46. Question
Rachel, a system administrator, wants to create a hard link named database_link that points to an existing file named database_original. Which command should she use to achieve this?
Correct
Correct Answer: A. ln database_original database_link Explanation: The ln command without any options is used to create hard links. The first argument is the source (existing file) and the second argument is the name of the new hard link. Option B is incorrect. The ′-s′ option creates a symbolic link, not a hard link. Option C is incorrect. While ′link′ might sound relevant, it‘s not the standard command for creating links in this context. Option D is incorrect. The ′-h′ option is not a valid option for the ′ln′ command when creating hard links.
Incorrect
Correct Answer: A. ln database_original database_link Explanation: The ln command without any options is used to create hard links. The first argument is the source (existing file) and the second argument is the name of the new hard link. Option B is incorrect. The ′-s′ option creates a symbolic link, not a hard link. Option C is incorrect. While ′link′ might sound relevant, it‘s not the standard command for creating links in this context. Option D is incorrect. The ′-h′ option is not a valid option for the ′ln′ command when creating hard links.
Unattempted
Correct Answer: A. ln database_original database_link Explanation: The ln command without any options is used to create hard links. The first argument is the source (existing file) and the second argument is the name of the new hard link. Option B is incorrect. The ′-s′ option creates a symbolic link, not a hard link. Option C is incorrect. While ′link′ might sound relevant, it‘s not the standard command for creating links in this context. Option D is incorrect. The ′-h′ option is not a valid option for the ′ln′ command when creating hard links.
Question 47 of 60
47. Question
When parsing a system partition, two partitions were identified with type 82 (0x82). What does that mean?
Correct
ItÂ’s important to remember that a partition with ID 82 (0x82) will be assigned to the swap area, while partitions with ID 83 (0x83), Linux Native, will be used to Linux files. The swap area of a system can be composed of several partitions.
Incorrect
ItÂ’s important to remember that a partition with ID 82 (0x82) will be assigned to the swap area, while partitions with ID 83 (0x83), Linux Native, will be used to Linux files. The swap area of a system can be composed of several partitions.
Unattempted
ItÂ’s important to remember that a partition with ID 82 (0x82) will be assigned to the swap area, while partitions with ID 83 (0x83), Linux Native, will be used to Linux files. The swap area of a system can be composed of several partitions.
Question 48 of 60
48. Question
In GRUB2, which file should you configure to define the waiting time to initiate the boot?
Correct
The GRUB settings must be made in /etc/default/grub, after using update-grub or grub-mkconfig is when the file /boot/grub/grub.cfg will be updated. The file menu.lst is used for GRUB Legacy, not for GRUB2.
Incorrect
The GRUB settings must be made in /etc/default/grub, after using update-grub or grub-mkconfig is when the file /boot/grub/grub.cfg will be updated. The file menu.lst is used for GRUB Legacy, not for GRUB2.
Unattempted
The GRUB settings must be made in /etc/default/grub, after using update-grub or grub-mkconfig is when the file /boot/grub/grub.cfg will be updated. The file menu.lst is used for GRUB Legacy, not for GRUB2.
Question 49 of 60
49. Question
When using the split command in a file, by default what is the maximum size of each new file created?
Correct
If thereÂ’s no specified parameter, split command will split a file in other files with 1000 lines each. The -l option can be used to set the desired number of lines and the -b option to set in bytes.
Incorrect
If thereÂ’s no specified parameter, split command will split a file in other files with 1000 lines each. The -l option can be used to set the desired number of lines and the -b option to set in bytes.
Unattempted
If thereÂ’s no specified parameter, split command will split a file in other files with 1000 lines each. The -l option can be used to set the desired number of lines and the -b option to set in bytes.
Question 50 of 60
50. Question
Which command shows the shared libraries used by a given command?
Correct
The ldd command followed by the application‘s name will show the dynamic libraries used by the application. The ldconfig is used to update the directory bases in which the shared libraries can be found. In practice, the ldconfig updates the file /etc/ld.so.cache based on the settings of /etc/ld/so.conf. The updatedb updates the base used with the command locate.
Incorrect
The ldd command followed by the application‘s name will show the dynamic libraries used by the application. The ldconfig is used to update the directory bases in which the shared libraries can be found. In practice, the ldconfig updates the file /etc/ld.so.cache based on the settings of /etc/ld/so.conf. The updatedb updates the base used with the command locate.
Unattempted
The ldd command followed by the application‘s name will show the dynamic libraries used by the application. The ldconfig is used to update the directory bases in which the shared libraries can be found. In practice, the ldconfig updates the file /etc/ld.so.cache based on the settings of /etc/ld/so.conf. The updatedb updates the base used with the command locate.
Question 51 of 60
51. Question
In a Debian system, in which configuration file can the package repositories used by APT be found?
Correct
The file /etc/apt/sources.list contains a list of URLs and parameters used by the APT commands to check and download the new packages.
Incorrect
The file /etc/apt/sources.list contains a list of URLs and parameters used by the APT commands to check and download the new packages.
Unattempted
The file /etc/apt/sources.list contains a list of URLs and parameters used by the APT commands to check and download the new packages.
Question 52 of 60
52. Question
Which Debian tool can be used to reconfigure a package already installed, allowing the administrator to select new definitions for the installation?
Correct
The command dpkg-reconfigure can be used to reconfigure a package already installed, like, for example, the keyboard sets with “dkpg-reconfigue keyboard-configuation”. The “apt-get update” only updates the the repository information, “dselect“ is a menu interface for dpkg and apt reconfigure does not exist.
Incorrect
The command dpkg-reconfigure can be used to reconfigure a package already installed, like, for example, the keyboard sets with “dkpg-reconfigue keyboard-configuation”. The “apt-get update” only updates the the repository information, “dselect“ is a menu interface for dpkg and apt reconfigure does not exist.
Unattempted
The command dpkg-reconfigure can be used to reconfigure a package already installed, like, for example, the keyboard sets with “dkpg-reconfigue keyboard-configuation”. The “apt-get update” only updates the the repository information, “dselect“ is a menu interface for dpkg and apt reconfigure does not exist.
Question 53 of 60
53. Question
Among the commands below, which one will try to repair the /dev/sda2 partition, formatted with the XFS file system?
Correct
xfs_repair repairs corrupt or damaged XFS filesystems The e2fsck is only for ext2, ext3 and ext4. xfs_fsr is the filesystem reorganizer for XFS. The syntax for fsck is wrong, but even using fsck.xfs or fsck -t xfs, the command will indicate the use of xfs_repair.
Incorrect
xfs_repair repairs corrupt or damaged XFS filesystems The e2fsck is only for ext2, ext3 and ext4. xfs_fsr is the filesystem reorganizer for XFS. The syntax for fsck is wrong, but even using fsck.xfs or fsck -t xfs, the command will indicate the use of xfs_repair.
Unattempted
xfs_repair repairs corrupt or damaged XFS filesystems The e2fsck is only for ext2, ext3 and ext4. xfs_fsr is the filesystem reorganizer for XFS. The syntax for fsck is wrong, but even using fsck.xfs or fsck -t xfs, the command will indicate the use of xfs_repair.
Question 54 of 60
54. Question
Which of the following statements are true about the MBR (Master Boot Record)? (Choose three.)
Correct
The MBR area is located in the first sector of the bootable disk, contains the information for loading the bootloader (GRUB) and the system partition table. MBR loads and runs GRUB. The Power On Self Test (POST) is a test performed by the BIOS on the hardware components connected to the motherboard. The kernel is responsible for starting the init .
Incorrect
The MBR area is located in the first sector of the bootable disk, contains the information for loading the bootloader (GRUB) and the system partition table. MBR loads and runs GRUB. The Power On Self Test (POST) is a test performed by the BIOS on the hardware components connected to the motherboard. The kernel is responsible for starting the init .
Unattempted
The MBR area is located in the first sector of the bootable disk, contains the information for loading the bootloader (GRUB) and the system partition table. MBR loads and runs GRUB. The Power On Self Test (POST) is a test performed by the BIOS on the hardware components connected to the motherboard. The kernel is responsible for starting the init .
Question 55 of 60
55. Question
You want to identify the network card‘s model that is in use in the PCI BUS of your system. Which of the following commands must be used?
Correct
lspci is a utility for displaying information about PCI buses in the system and devices connected to them.
Incorrect
lspci is a utility for displaying information about PCI buses in the system and devices connected to them.
Unattempted
lspci is a utility for displaying information about PCI buses in the system and devices connected to them.
Question 56 of 60
56. Question
When listing the devices connected to the USB, the following list was shown: Bus 001 Device 006: ID 064e:c231 Suyin Corp. Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 004: ID 04f3:2013 Elan Microelectronics Corp. Bus 001 Device 007: ID 0cf3:e005 Atheros Communications, Inc. Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Which command should be used to show all the details of the “Logitech“ device?
Correct
The lsusb command is used to list the devices connected to the USB buses, the -s option is used to view the details based on the Bus and Device values, the -d option is used with the values that follow the “ID“, always in with the -v option to display the details.
Incorrect
The lsusb command is used to list the devices connected to the USB buses, the -s option is used to view the details based on the Bus and Device values, the -d option is used with the values that follow the “ID“, always in with the -v option to display the details.
Unattempted
The lsusb command is used to list the devices connected to the USB buses, the -s option is used to view the details based on the Bus and Device values, the -d option is used with the values that follow the “ID“, always in with the -v option to display the details.
Question 57 of 60
57. Question
Which of the following commands can be used to perform the system restart procedure when SysV is in use? (Select 3)
Correct
The -r option of the shutdown command can be used to reboot the system, as well as the reboot command. Telinit 6 invokes runlevel 6 which is related to rebooting the system. Runlevel 0 is related to the shutdown procedure.
Incorrect
The -r option of the shutdown command can be used to reboot the system, as well as the reboot command. Telinit 6 invokes runlevel 6 which is related to rebooting the system. Runlevel 0 is related to the shutdown procedure.
Unattempted
The -r option of the shutdown command can be used to reboot the system, as well as the reboot command. Telinit 6 invokes runlevel 6 which is related to rebooting the system. Runlevel 0 is related to the shutdown procedure.
Question 58 of 60
58. Question
Which of the following directories can not be mounted on partitions other than the root partition (/)? (Select 2)
Correct
Some directories can not be mounted on partitions other than the / partition. The / partition is the first to be mounted, and after that, configuration files and tools will be used to finalize the system boot, including mounting other partitions, if these files are on different partitions, they will not be accessible. The directories that should be on the same partition are /etc, /sbin, /bin, /lib, /media, /mnt, /proc, /sys, /dev.
Incorrect
Some directories can not be mounted on partitions other than the / partition. The / partition is the first to be mounted, and after that, configuration files and tools will be used to finalize the system boot, including mounting other partitions, if these files are on different partitions, they will not be accessible. The directories that should be on the same partition are /etc, /sbin, /bin, /lib, /media, /mnt, /proc, /sys, /dev.
Unattempted
Some directories can not be mounted on partitions other than the / partition. The / partition is the first to be mounted, and after that, configuration files and tools will be used to finalize the system boot, including mounting other partitions, if these files are on different partitions, they will not be accessible. The directories that should be on the same partition are /etc, /sbin, /bin, /lib, /media, /mnt, /proc, /sys, /dev.
Question 59 of 60
59. Question
Which command installs all the files needed for the boot loader on device /dev/sda?
Correct
The grub-install command will install the GRUB files on the indicated device, by default in the /boot directory. The grub-mkconfig and update-grub commands have the function of updating the GRUB files in /boot, based on what has been configured by the administrator.
Incorrect
The grub-install command will install the GRUB files on the indicated device, by default in the /boot directory. The grub-mkconfig and update-grub commands have the function of updating the GRUB files in /boot, based on what has been configured by the administrator.
Unattempted
The grub-install command will install the GRUB files on the indicated device, by default in the /boot directory. The grub-mkconfig and update-grub commands have the function of updating the GRUB files in /boot, based on what has been configured by the administrator.
Question 60 of 60
60. Question
Which commands below can be used to display the details of zsh package installation, such as version, dependencies, description, and etc? (Select 3)
Correct
“dpkg -s“, “apt-cache show“ and “apt show“ will return various information from a package installed on the system. “Dpkg -L“ lists the files associated with a given package. The “status“ option in apt-get does not exist.
Incorrect
“dpkg -s“, “apt-cache show“ and “apt show“ will return various information from a package installed on the system. “Dpkg -L“ lists the files associated with a given package. The “status“ option in apt-get does not exist.
Unattempted
“dpkg -s“, “apt-cache show“ and “apt show“ will return various information from a package installed on the system. “Dpkg -L“ lists the files associated with a given package. The “status“ option in apt-get does not exist.
X
Use Page numbers below to navigate to other practice tests