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
Q

ps -t

A

list every process

26
Q

ps -T

A

list every process associated with the current tty terminal

27
Q

ps -u

A

only display processes whose effective user is in Userlist

28
Q

ps -U

A

only display processes whose real user is in Userlist

29
Q

ps x

A

remove restriction of “associated with a tty terminal”; typically used with the a option

30
Q

uptime

A

quick look at system load averages

31
Q

free

A

quick look at memory usage

32
Q

what is the niceness level

A

priority level assigned by the system to an application

33
Q

what is the syntax to start an application with a nondefault niceness level?

A

nice -n value command

34
Q

what can the value of a nice command be?

A

-20 to 19

35
Q

how do you change the priority of a process that’s already running?

A

renice command

36
Q

what is the default syntax for the renice command

A

renice priority [-p PIDS] [-u users] [-g groups]

37
Q

what privledges do you need to set a nice value less than 0?

A

super user

38
Q

what is process signal 1

A

HUP (Hangs up)

39
Q

what is process signal 2

A

INT (interrupts)

40
Q

what is process signal 3

A

QUIT (stops running)

41
Q

what is process signal 9

A

KILL unconditionally terminates

42
Q

what is process 11

A

SEGV (segments violation)

43
Q

what is process 15

A

TERM (terminates if possible)

44
Q

what is process 17

A

STOP (stops unconditionally, but doesn’t terminate)

45
Q

what is process 18

A

TSTP (stops or pauses, but continues to run in background)

46
Q

what is process 19

A

CONT (resumes execution after STOP or TSTP)

47
Q

what does the kill command do

A

sends a TERM signal to all the PIDs listed on the command line

48
Q

What do you use when using the kill utility to terminate a process?

A

PID

49
Q

what do you use when using the kill utility to terminate a background job?

A

job number

50
Q

how is kill all different from kill

A

kill all can select a process based on the command it is executing as opposed to the PID

51
Q

pkill

A

can send signals using selection criteria other than PID or commands they are running

52
Q

pgrep

A

allows you to find process ids of a program based on a given criteria