Managing Processes Flashcards

1
Q

process

A

a running program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

init process

A

core of a linux system, runs scripts that start all of the other processes running on the system, including text consoles and GUI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ps

A

shows all programs running on system, but by default only shows programs running on current shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ps -ef

A

shows every process running on the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

UID

A

user responsible for running process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

PID

A

process ID of the process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

PPID

A

process ID of the parent process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

C

A

processor utilization over the lifetime of the process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

STIME

A

system time when the process was started

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

TTY

A

the terminal device from which the process was started

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

TIME

A

the cumulative CPU time required to run the process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CMD

A

the name of the program that was started in the process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

sleeping

A

processes swapped into virtual memory, sometimes waiting for an event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

interruptable sleep mode

A

receives signals immediately

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

uninterruptible sleep mode

A

the process only wakes up for an external event, such as hardware becoming available

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

zombie

A

the process has ended, but the parent process hasn’t acknowledged its termination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

ps a

A

display every single process on the system associated with a TTY terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

pa -A or ps -e

A

display every process on the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

ps -C

A

only display processes running a command in the command list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

ps -g

A

only display processes whose current effective group is in the GID list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

ps -G

A

only display processes whose current real group is in GIDList

22
Q

ps -N

A

display every process except selected processes

23
Q

ps p

A

only display PID list processes

24
Q

ps -r

A

only display selected processes that are in a state of running

25
ps -t
list every process
26
ps -T
list every process associated with the current tty terminal
27
ps -u
only display processes whose effective user is in Userlist
28
ps -U
only display processes whose real user is in Userlist
29
ps x
remove restriction of "associated with a tty terminal"; typically used with the a option
30
uptime
quick look at system load averages
31
free
quick look at memory usage
32
what is the niceness level
priority level assigned by the system to an application
33
what is the syntax to start an application with a nondefault niceness level?
nice -n value command
34
what can the value of a nice command be?
-20 to 19
35
how do you change the priority of a process that's already running?
renice command
36
what is the default syntax for the renice command
renice priority [-p PIDS] [-u users] [-g groups]
37
what privledges do you need to set a nice value less than 0?
super user
38
what is process signal 1
HUP (Hangs up)
39
what is process signal 2
INT (interrupts)
40
what is process signal 3
QUIT (stops running)
41
what is process signal 9
KILL unconditionally terminates
42
what is process 11
SEGV (segments violation)
43
what is process 15
TERM (terminates if possible)
44
what is process 17
STOP (stops unconditionally, but doesn't terminate)
45
what is process 18
TSTP (stops or pauses, but continues to run in background)
46
what is process 19
CONT (resumes execution after STOP or TSTP)
47
what does the kill command do
sends a TERM signal to all the PIDs listed on the command line
48
What do you use when using the kill utility to terminate a process?
PID
49
what do you use when using the kill utility to terminate a background job?
job number
50
how is kill all different from kill
kill all can select a process based on the command it is executing as opposed to the PID
51
pkill
can send signals using selection criteria other than PID or commands they are running
52
pgrep
allows you to find process ids of a program based on a given criteria