Process Flashcards
1
Q
ps [PID]
A
UNIX based
ps -a
ps a
ps aux
/EXAMPLE
2
Q
ps u [PID]
A
3
Q
ps u -U [aaron]
A
4
Q
pgrep -a syslog
A
5
Q
nice process
A
launch time
nice -n 11 bash
ps l (show nice values) and ps lax
6
Q
process tree
A
ps fax
7
Q
nice higher value
A
sudo nice -n -12 bash
8
Q
renice
A
sudo renice 7 [PID]
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.
10
Q
Lets send a signal
A
sudo kill -SIGHUP [PID]
11
Q
Kill with process name
A
pkill -n KILL bash
12
Q
What files a process is using
A
- get the PID
pgrep -a bash - sudo lsof -p [PID]
13
Q
What processes are using specific files or directories
A
sudo lsof /var/log/messages