Process Flashcards

1
Q

ps [PID]

A

UNIX based

ps -a

ps a

ps aux

/EXAMPLE

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

ps u [PID]

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

ps u -U [aaron]

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

pgrep -a syslog

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

nice process

A

launch time

nice -n 11 bash

ps l (show nice values) and ps lax

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

process tree

A

ps fax

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

nice higher value

A

sudo nice -n -12 bash

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

renice

A

sudo renice 7 [PID]

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

Signals for process
with kill -L

A

Application only support these signals if they were programed to process these signals, but SIGSTOP and SIGKILL are supported by all process.

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

Lets send a signal

A

sudo kill -SIGHUP [PID]

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

Kill with process name

A

pkill -n KILL bash

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

What files a process is using

A
  1. get the PID
    pgrep -a bash
  2. sudo lsof -p [PID]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What processes are using specific files or directories

A

sudo lsof /var/log/messages

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