NOS 120 MIDTERM 3 REVIEW EXAM
QUESTIONS AND ANSWERS
Suppose you have a directory named Project within your current working
directory. Assume the Project directory also contains files and additional
subdirectories. Which command would remove the Project directory and
all of its contents without prompting to confirm each file deletion? -
ANSWER rm -rf Project
Which of the following redirection symbols should be used to append the
results to an existing file (preserving the contents)?
Select one:
a. &>
b. >
c. >>
d. 2> - ANSWER >>
What is a daemon? - ANSWER A daemon is a system process that
performs key tasks like printing, maintenance or scheduling. The first
daemon on the system is the init daemon, which loads all of the other
daemons that are necessary to make the system usable.
In vi editor, which key combination do we use to save and exit?
Select one:
a. ctrl-c
b. :q
c. :wq
d. :q! - ANSWER c. :wq
To start and stop daemons, as well as configure them to automatically
start during system initialization, you can use the
_______________________ command. - ANSWER systemctl
You work as a Linux system administrator for a small business. The
company has a web server that records every login attempt to a custom
log file named log_file.txt. There has a been a recent security breach,
, and your boss has asked you to generate a list of all failed login
attempts in this log file.
Below is an example of what the first 10 lines of this log file might look
like:
What grep command would you issue to generate a list of failed login
attempts? - ANSWER grep "login:fail" login_log.txt
Write the command that would print the following sentence to the
terminal (exactly as it appears below):
When I graduate I hope to make a lot of $$ - ANSWER echo "When I
graduate I hope to make a lot of \$\$"
In the following command, what do we call the part in blue?
ls -a /home/jsmith/private
Select one:
a. argument
b. option - ANSWER argument
Users enter commands directly to the kernel of the Linux operating
system.
Select one:
True
False - ANSWER false
Which runlevel reboots the system?
Select one:
a. 1
b. 3
c. 6
d. 5
e. 0 - ANSWER 6
In the following command, what do we call the part in blue?
rm -rf /home/jsmith/private
Select one:
a. option
QUESTIONS AND ANSWERS
Suppose you have a directory named Project within your current working
directory. Assume the Project directory also contains files and additional
subdirectories. Which command would remove the Project directory and
all of its contents without prompting to confirm each file deletion? -
ANSWER rm -rf Project
Which of the following redirection symbols should be used to append the
results to an existing file (preserving the contents)?
Select one:
a. &>
b. >
c. >>
d. 2> - ANSWER >>
What is a daemon? - ANSWER A daemon is a system process that
performs key tasks like printing, maintenance or scheduling. The first
daemon on the system is the init daemon, which loads all of the other
daemons that are necessary to make the system usable.
In vi editor, which key combination do we use to save and exit?
Select one:
a. ctrl-c
b. :q
c. :wq
d. :q! - ANSWER c. :wq
To start and stop daemons, as well as configure them to automatically
start during system initialization, you can use the
_______________________ command. - ANSWER systemctl
You work as a Linux system administrator for a small business. The
company has a web server that records every login attempt to a custom
log file named log_file.txt. There has a been a recent security breach,
, and your boss has asked you to generate a list of all failed login
attempts in this log file.
Below is an example of what the first 10 lines of this log file might look
like:
What grep command would you issue to generate a list of failed login
attempts? - ANSWER grep "login:fail" login_log.txt
Write the command that would print the following sentence to the
terminal (exactly as it appears below):
When I graduate I hope to make a lot of $$ - ANSWER echo "When I
graduate I hope to make a lot of \$\$"
In the following command, what do we call the part in blue?
ls -a /home/jsmith/private
Select one:
a. argument
b. option - ANSWER argument
Users enter commands directly to the kernel of the Linux operating
system.
Select one:
True
False - ANSWER false
Which runlevel reboots the system?
Select one:
a. 1
b. 3
c. 6
d. 5
e. 0 - ANSWER 6
In the following command, what do we call the part in blue?
rm -rf /home/jsmith/private
Select one:
a. option