Module 5: Knowledge Check Chapter 9

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What option can be used with the ps command to display an entire list of processes across all terminals, including daemons?

-e

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs?

/etc/cron.deny

In which directory would a system administrator store scripts that should be run monthly by the cron daemon?

/etc/cron.monthly

Cicero wishes to schedule a shell script called /bin/report.sh at 9:00 PM on the first day of each month on his Linux server. The report.sh script displays a summary of storage usage statistics to stdout. What cron table entry can he create?

0 21 * * * /bin/report.sh >/etc/currentreport.txt

Which of the following nice values will result in the lowest priority for a process?

19

Which of the following cron table lines would execute the /bin/myscript.sh shell script every Friday at 11:30 PM?

30 23 -- 5 /bin/myscript.sh (- is the star symbol)

What character under the TTY column in the output of the ps command likely indicates that the process is a daemon process?

?

You have run the top command successfully, but realize that the q key on the keyboard has suddenly stopped working. What is another way that you can exit out of the top program?

Ctrl+c

If a process is currently in an uninterruptible sleep state, which letter will show in the output of the ps command?

D

Which kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory?

SIGQUIT

Which of the following statements is false regarding commands and shell scripts that are executed within a shell?

They are executed within the current shell unless they are run in the background.

Which of the following commands will display a list of the pending jobs to be run? (Choose all that apply.)

at -l atq

A system administrator wants to schedule a task to run at midnight but knows that they will not be in the office at that time. Which of the following commands can they use to schedule this task to run that night while they are at home?

at midnight

Which of the following command can be used to remove at job 5 from the list of pending jobs? (Choose all that apply.)

atrm 5 at -d 5

Which of the following commands will show the cron jobs that have been created for the currently logged in user?

crontab -l

You have started a process in the background that you want to now bring to the foreground. The process has PID 3456 and background job ID 5. Which of the following commands can be used to move this process to the foreground?

fg %5

Which of the following commands can be used to identify rogue processes? (Choose all that apply.)

htop top

Which of the following commands can be used to display the background processes started by the current user?

jobs

What kill command can be used to restart the Systemd or Sys V init daemon?

kill -1 1

Which of the following commands will send a process's resources to /dev/null to kill the process for process ID 1357?

kill -9 1357

Which of the following commands can be used to terminate a process by the process name? (Choose all that apply.)

killall pkill

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)?

lsof

Which of the following can be used preceding a command to prevent a process from terminating when the parent process terminates?

nohup

Which of the following commands will show a list of process names along with their process ID (PID)? (Choose two.)

ps htop

What command is used to display the lineage of a process by tracing its PPIDs until the init daemon?

pstree

Which of the following commands can be used to change the priority of a running process?

renice

Which of the following commands can be used to schedule very frequent recurring tasks, such as running once every minute?

watch

Which of the following states describe a process that is waiting for a parent process to release its PID?

zombie


Set pelajaran terkait

The Things They Carried Unit Review

View Set

Algebra 1: Module 1: 01.07 Algebraic Properties and Equations

View Set

SOCIAL PSYCHOLOGY 3004 exam 1 ch 1-4

View Set

The Purchasing Process - Ch 12 - AC 304

View Set

docs.aws.amazon - Migration Planning 15%

View Set

Inventory and Cost of Goods Sold

View Set