Process Management

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

What is the range for nice values?

-20 to 19

2
New cards

What do you add to the end of a command to make it run in the background?

&

3
New cards

What command do you use to see running background jobs?

jobs

4
New cards

What is printed after you create a background job?

The job ID and the PID

5
New cards

What command do you use to move a background process to the foreground? What about the opposite?

fg jobid, bg jobid

6
New cards

What must you do before you turn a foreground process into a background process?

Get a job ID by pressing ctrl+z

7
New cards

What command do you use to edit a processes nice level as you launch it?

nice -n nlevel command

8
New cards

What command do you use to edit a processes nice level as its running?

renice -n nlevel PID

9
New cards

What switch do you use with renice to specify a users processes? What about a group?

-u, -g

10
New cards

What 3 commands can you use to kill processes?

kill, killall, and pkill

11
New cards

What is the syntax of the kill command?

kill -signal PID

12
New cards

What are the 4 common kill signals?

SIGHUP 1, SIGINT 2, SIGKILL 9, SIGTERM 15

13
New cards

What is the difference between killall and kill?

You don’t need to specify a PID with killall

14
New cards

What is special about pkill?

It is similar to pgrep

15
New cards

What is the syntax for pkill?

pkill -sig -f *

16
New cards

What command do you use to keep a process running even when logged out of the system?

nohup

17
New cards

What is the syntax for nohup?

nohup pname &

18
New cards

What file does nohup send stdout and stderr to?

nohup.out

19
New cards

How do you get rid of a zombie process?

SIGCHLD or kill the parent process