Process Management Flashcards

1
Q

What command is used to send a signal to a process?

A

■ kill

■ usage: kill [-signal] PID

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

What command is used to send a signal to one or more processes matching selection criteria?

A

■ killall

■ usage: killall [-signal] command_pattern

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

What advanced command can be used to send a signal to one or more processes based on command, UID, GID, Parent or terminal?

A
■ pkill
■ usage: pkill command_pattern
■ usage: pkill -signal command_pattern
■ usage: pkill -G GID command_pattern
■ usage: pkill -P PPID command_pattern
■ usage: pkill -t terminal_name -U UID command_pattern
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command views users currently logged into the system and their cumulative activities?

A

■ ‘w’

■ w [options] user

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

What command is used to look up processes to list IDs matching a selection criteria?

A

■ pgrep
■ usage: pgrep [options] pattern
■ usage: pgrep -l -u

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

What command can be used to view the process tree for the system or a single user?

A

■ pstree

■ usage: pstree [options]

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

What resources should be checked when experiencing high load averages with minimal CPU activity?

A

■ Disk activity

■ Network activity

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

What do the value of the load average represent?

A

■ The weighted values over the last 1, 5, and 15 minutes.

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

What utilities display load average values?

A

■ top
■ uptime
■ w
■ gnome-system-monitor

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

What so the displayed load average values mean?

A

■ Below 1 indicates satisfactory resource utilization and minimal wait times.
■ Above 1 indicates resource saturation and some amount of service waiting times.

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

What are the levels nice provides for program execution priority?

A

■ -20 to -1 (most favorable to process)

■ 0 to 19 (least favorable to process)

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

What does the ‘nice’ command do?

A

■ Runs a program with a modified scheduling priority.

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

What does the ‘renice’ command do?

A

■ Alters the priority of running processes.

■ Regular users can only raise the nice level of their processes. Only root can lower the nice level.

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

What options allow for sorting and output formatting when using ‘ps’?

A

■ -o (followed by column names like: pcpu,pid,comm,user)

■ –sort (like –sort=pcpu,user)

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

What does $(pgrep [commandname] ) do?

A

■ Returns all instances of the command and their PIDs.

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