PID Flashcards

1
Q

ps

display all running processes on the system for any user

A

ps -a

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

ps

display user info for displayed processes

A

ps -u

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

ps

display processes with an associated tty (terminal)

A

ps -x

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

ps

will show all running processes by any user displaying the process owner and including processes not tied to a terminal

A

ps aux

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

ps

will show all running processes by any user displaying the process owner and including processes not tied to a terminal

A

ps -ef

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

pstree

display the tree using ASCII characters

A

ps -A

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

pstree

display the processes including any parameters used

A

ps -s

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

pstree

show PIDs

A

ps -p

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

free

displays memory in bytes

A

free -b

free –bytes

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

free

displays memory in kilobytes by default

A

free -k

free –kilo

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

free

displays memory in megabytes

A

free -m

free –mega

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

free

displays memory in gigabytes

A

free -g

free –giga

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

free

displays memory if a more human readable format

A

free -h

free –human

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

free

the number of times to display the output and must be used with -s option

A

free -c

free –count

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

free

how many seconds between each display output used with -c

A

free -s

free –seconds

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

free

display a line showing each columns totals

A

free -t

free –total

17
Q

free

display low and high memory stats

A

free -l

free –lohi

18
Q

signal 1

shutdown and restart the process hangup

A

SIGHUP

19
Q

signal 2

interrupts a process CTL-C

A

SIGINT

20
Q

signal 9

kill the process (cannot be ignored or caught)

A

SIGKILL

21
Q

signal 15

terminate the process and can ignore or catch

A

SIGTERM

22
Q

signal 19

stop cannot be ignored or caught

A

SIGSTOP

23
Q

signal 20

terminal stop
CTL-Z

A

SIGTSTP

24
Q

kill

attempts to kill process with indicated signal

A

kill - [signal #]

25
Q

kill

special reference to ask a process to restart in order to reread a config file or implement a change

A

kill -1 (-HUP)

26
Q

kill

kill/stop/end/dump ring now - most often will kill off even zombie or hung processes

A

kill -9 (-KILL)

27
Q

pkill

send the signal number to the matched process

A

pkill -signal

pkil –signal [#]

28
Q

pkill

match the indicated terminal/tty

A

pkill -t [terminal]

29
Q

pkill

match user ID

A

pkill -U

pkill –uid [user]

30
Q

pgrep

will display any httpd process owned by root OR apache

A

pgrep -u root, apache httpd

31
Q

pgrep

will display only processes owned by root AND apache

A

pgrep -u root apache