DCOM 142 LINUX FINAL REVIEW QUESTIONS
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/sdb2
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
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/sdb2
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