Unit 9 Linux

Ace your homework & exams now with Quizwiz!

If a process state is currently showing as uninterruptible sleep, which letter will show in the output of the ps command? S U N D

D

Which of the following commands will display a list of the pending jobs to be run? (Choose all that apply.) at -l atq at -q at -d

at -l atq at -q

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 ctrl-q ctrl-w ctrl-x

ctrl-c

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

nohup

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

pstree

After a background process has been started, what command below can be used to move it to the foreground? fg fgnd fgd b2f

fg

You have started a job running in the background that you want to now bring to the front so that you can watch it execute. Which of the following commands can be used to display the job's output to the terminal? disp fg front jobs -f

fg

Which of the following commands can be used to terminate a process by the process name? kill pkill stop pskill

pkill

While the top command is running, what key can be pressed to change the nice value of a process? n r p v

r

Which of the following commands can be used to only show jobs that have been paused. jobs -p jobs -s jobs -n jobs -r

jobs -s

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

ps top

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

zombie

Which of the following commands will show the current user cron jobs that have been created for the currently logged in user? cronjobs --list cron --list cron -l crontab -l

crontab -l

Where are scheduled commands stored on Ubuntu Linux systems? /var/spool/cron/atjobs /etc/at/ /tmp/at /var/spool/at

/var/spool/cron/atjobs

Which of the following is the highest value that can be set for the nice value which would result in a greater chance of a lower priority? 20 19 10 0

19

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? SIGINT SIGKILL SIGQUIT SIGTERM

SIGQUIT

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

atrm at -r at -d

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process? n p r d

r

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

kill -9 1357

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

lsof

What option can be used with the ps command to display an entire list of processes across all Terminals, including daemons? -a -f -e -l

-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 /etc/cron.d/cron.deny /etc/cron.allow /etc/cron.d/cron.allow

/etc/cron.deny

In which directory would a system administrator store scripts that should be run monthly by the cron daemon? /var/cron/monthly /etc/crontab/monthly /var/crontab/monthly /etc/cron.monthly

/etc/cron.monthly

A system administrator wants to schedule a task to run at 11 pm, but knows that she will not be in the office at that time. Which of the following commands can she use to schedule this task to run that night while she is at home? exec run at atq

at

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

watch


Related study sets

Practice Questions for HSMT 2103

View Set

SOC-101 Ch. 7 Social Class: The Structure of Inequality

View Set

APUSH Chapter 15 : Reconstruction Part 3

View Set

Unit 4.3: Right Triangles Unit TEST

View Set

GIVE ME LIBERTY! by Eric Foner Chapter 16

View Set

Corporals course final test study guide

View Set

NC Casualty License Exam Prep Questions 2020

View Set