Linux Midterm Chapters 1-4 Questions With Complete
Solutions
A calendar for the current month can be shown on the command
line by issuing which command?
date
cal
w
id Correct Answer cal
Abdul wishes to view the contents of a binary data file in his
home directory to learn more about what program was used to
create it. Which of the following commands would allow Abdul
to safely view the contents of this file?
strings
file
grep
cat Correct Answer strings
After a shell is no longer needed, what command can be given to
exit the shell?
exit
stop
reset
quit Correct Answer exit
After installing a new Linux system, Joel attempts to search the
manual pages by keyword but no results are displayed. What
command should Joel run to remedy the issue?
,makewhatis
mandb
info
man -k Correct Answer mandb
Alexis is installing Linux on a new server system that will be
used as a print server. Which directory should Alexis choose to
create as a separate filesystem during the installation to ensure
that the print server cannot use space on the / filesystem?
/var
/usr
/home
/opt Correct Answer /var
Amir is unfamiliar with Linux and would like to obtain physical
help installing Linux on his laptop computer. What resource
would best suit Amir's needs?
online forum
LUG
Linux information website
social media website Correct Answer LUG
An archive of files that usually contains source code or scripts
that can be used to install software is referred to as a:
router
package manager
DBMS
tarball Correct Answer tarball
,Andre uses an Apple laptop and wishes to install Linux within a
virtual machine on macOS. Which of the following hypervisors
can he install on macOS to create a Linux virtual machine?
(Choose all that apply.)
Hyper-V
UTM
KVM
Parallels Desktop Correct Answer Hyper-V
UTM
Parallels Desktop
At the vi command mode prompt, what key combination will
force a quit from the vi editor without saving changes?
:q
:q!
:exit
:! Correct Answer :q!
Ayushi needs to reboot a Linux system in 10 minutes. She wants
to first warn any logged on users to save their work and log off
prior to the reboot. What command can Ayushi use?
echo
uname
, wall
apb Correct Answer wall
Chase is trying to extract records for employees 423 through 428
out of a comma separated values file that starts with the
employee number. Which of the following commands would
accomplish this? (Choose all that apply.)
grep 423,424,425,426,427,428 employees.csv
grep "^42[3-8]" employees.csv
grep "423-428" employees.csv
grep "[423-428]" employees.csv Correct Answer grep "^42[3-
8]" employees.csv
Dillon wants to install Fedora Linux on a workstation computer
by booting from live installation media and has already
downloaded the live media ISO image for Fedora. What
software can Dillon use on his Windows PC to create a bootable
USB flash drive from the live media ISO image? (Choose all
that apply.)
Fedora Media Writer
disc burning software
Windows Explorer
balenaEtcher Correct Answer Fedora Media Writer
disc burning software
Solutions
A calendar for the current month can be shown on the command
line by issuing which command?
date
cal
w
id Correct Answer cal
Abdul wishes to view the contents of a binary data file in his
home directory to learn more about what program was used to
create it. Which of the following commands would allow Abdul
to safely view the contents of this file?
strings
file
grep
cat Correct Answer strings
After a shell is no longer needed, what command can be given to
exit the shell?
exit
stop
reset
quit Correct Answer exit
After installing a new Linux system, Joel attempts to search the
manual pages by keyword but no results are displayed. What
command should Joel run to remedy the issue?
,makewhatis
mandb
info
man -k Correct Answer mandb
Alexis is installing Linux on a new server system that will be
used as a print server. Which directory should Alexis choose to
create as a separate filesystem during the installation to ensure
that the print server cannot use space on the / filesystem?
/var
/usr
/home
/opt Correct Answer /var
Amir is unfamiliar with Linux and would like to obtain physical
help installing Linux on his laptop computer. What resource
would best suit Amir's needs?
online forum
LUG
Linux information website
social media website Correct Answer LUG
An archive of files that usually contains source code or scripts
that can be used to install software is referred to as a:
router
package manager
DBMS
tarball Correct Answer tarball
,Andre uses an Apple laptop and wishes to install Linux within a
virtual machine on macOS. Which of the following hypervisors
can he install on macOS to create a Linux virtual machine?
(Choose all that apply.)
Hyper-V
UTM
KVM
Parallels Desktop Correct Answer Hyper-V
UTM
Parallels Desktop
At the vi command mode prompt, what key combination will
force a quit from the vi editor without saving changes?
:q
:q!
:exit
:! Correct Answer :q!
Ayushi needs to reboot a Linux system in 10 minutes. She wants
to first warn any logged on users to save their work and log off
prior to the reboot. What command can Ayushi use?
echo
uname
, wall
apb Correct Answer wall
Chase is trying to extract records for employees 423 through 428
out of a comma separated values file that starts with the
employee number. Which of the following commands would
accomplish this? (Choose all that apply.)
grep 423,424,425,426,427,428 employees.csv
grep "^42[3-8]" employees.csv
grep "423-428" employees.csv
grep "[423-428]" employees.csv Correct Answer grep "^42[3-
8]" employees.csv
Dillon wants to install Fedora Linux on a workstation computer
by booting from live installation media and has already
downloaded the live media ISO image for Fedora. What
software can Dillon use on his Windows PC to create a bootable
USB flash drive from the live media ISO image? (Choose all
that apply.)
Fedora Media Writer
disc burning software
Windows Explorer
balenaEtcher Correct Answer Fedora Media Writer
disc burning software