



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
DCOM 142 LINUX FINAL REVIEW QUESTIONS
Typology: Exams
1 / 6
This page cannot be seen from the preview
Don't miss anything!




A CPU flag... - Answers - defines the features that the CPU supports. How many partitions can GPT partititioning have? - Answers - unlimited A division of a hard drive is referred to as a _______. - Answers - partition MBR or Master Boot Record partitioning is limited to ____ TB disk size. - Answers - 2 What is the valid device file name for the second partition of the second SATA hard drive on the system? - Answers - /dev/sdb X86 or 32 bit processor systems are limited to ____ GB of memory? - Answers - 4 What information is held inside $?? - Answers - The previous command's exit code What does this shell script do? FOO=/tmp/foo if [! d $FOO ]; then mkdir $FOO fi - Answers - Creates /tmp/foo if it does not exist Given the following part of a script: if [ - f $1 ]; then echo I am here fi What is the meaning of $1? - Answers - It is the first argument passed to the script What is the meaning of $(( $i + 1))? - Answers - 1 will be added to the i variable What is the correct way to assign the word ""Hello"" to the variable GREETING? - Answers - GREETING="Hello" GREETING='Hello' GREETING=Hello
The if command looks for what exit code to consider a condition to be true? - Answers - 0 What is the correct way to save the current directory to the variable CURRDIR? - Answers - CURRDIR=pwd CURRDIR=$( pwd ) Which shell command accepts input from the user's keyboard? - Answers - read Choose all of the following statements that are true in regard to virtual RAM: (choose three) - Answers - Virtual RAM is used when available physical RAM is low. Virtual RAM is stored on a hard drive Virtual RAM is also called swap space Which of the following are valid partitioning types? (choose two) - Answers - GPT MBR Which of the following are valid video cable connector types? (choose two) - Answers - DVI VGA Which of the following are common busing systems? (choose two) - Answers - USB PCI Which are appropriate editors for writing shell scripts? (choose two) - Answers - nano vi Given the following script: while [! f /tmp/foo ]; do echo - n "." process_data > /tmp/foo done Which of the following are true? (choose two) - Answers - If a file called /tmp/foo exists, process_data won t be run process_data will never be run process_data will be called at most once
aptitude A command that will continuously update statistics about running processes is _____. - Answers - top To kill a firefox process using the proces name, you would type ""_____ firefox"". - Answers - pkill killall To kill a process, it send a signal SIGKILL or the signal number ______. - Answers - 9 The Process ID (PID) of the systemd process is _______ - Answers - 1 Which of the following files contain placeholders for a password, but not the actual passwords? - Answers - /etc/passwd /etc/group Which option for the usermod command can be used to specify a user's group ID (either primary or secondary)? (choose two) - Answers --G
Which of the following commands will allow you to switch to the user, branch? (choose three) - Answers - su - branch su - l branch su branch UIDs 1-499 are usually reserved for what kind of users? - Answers - System accounts, such as server processes Which of the following files contains user IDs? - Answers - /etc/passwd The usermod command can be used to do all of the following except... - Answers - change the user's MAX and MIN password settings. Which command can be used to determine a user's most recent log in? - Answers - last The ________ commands can be used to delete a user. - Answers - userdel The ________ commands can be used to add a group. - Answers - groupadd The ________ commands can be used to modify a user. - Answers - usermod The ________ command is user to set or change a password. - Answers - passwd Which of the following are methods for setting permissions using the chmod command? (choose two) - Answers - octal symbolic The 'execute' permission on a directory allows you to: (choose three) - Answers - Along with read permission to successfully perform ls - l Along with write permission to successfully create new files Change to that directory or use it as part of a path The root user can use the ________ command to change the group owner of any file to any group. - Answers - chgrp chown To list the names of the ________ that you have memberships, run the groups command. - Answers - groups The _______ value is used to determine the default permissions that are set when a new file or directory is created. - Answers - umask The root user can use the chgrp and ________ command to change the group owner of any file to any group. - Answers - chown