103.6 Modify Process Execution Priorities Flashcards

1
Q

Modify Process Execution Priorities

allow a user to start a process with a priority lower than the default

A

nice

0 is default

nice starts with 10

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

Modify Process Execution Priorities

nice

allows you to change the default priority of the indicated program

A

nice -n [#] [program]

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

Modify Process Execution Priorities

changes priority of a process and commonly used to lower a process priority that may be consuming too many resources or to raise a process priority so it can complete faster

A

renice

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

Modify Process Execution Priorities

renice

change priority to higher number to lower priority and ALL users can do this

A

renice +[#] [PID]

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

Modify Process Execution Priorities

renice

only root users can do this - change priority to a lower number which is a higher priority

A

renice -[#] [PID]

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

Modify Process Execution Priorities

config is read from /etc/toprc or local - /home/usr/.toprc for user configs and used to display actively running running processes and can be used to alter priority of running processes

A

top

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

Modify Process Execution Priorities

top

run and update the processes display ever ‘#’ of seconds

A

top d [#]

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

Modify Process Execution Priorities

top

show only active processes

A

top -i

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

Modify Process Execution Priorities

top

run in batch mode

A

top -b

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

Modify Process Execution Priorities

top

run ‘#’ of updates and exit

A

top -c [#]

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

Modify Process Execution Priorities

top

will run top in batch mode and update 5 times and write the results to output.txt file and exit

A

top -b -n 5 > output.txt

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

Modify Process Execution Priorities

top shortcuts

immediate update

A

top spacebar

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

Modify Process Execution Priorities

top shortcuts

displays help screen

A

top -h

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

Modify Process Execution Priorities

top shortcuts

prompts for PID to kill

A

top -k

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

Modify Process Execution Priorities

top shortcuts

display or ignore inactive/idle/zombie processes (toggle)

A

top -i

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

Modify Process Execution Priorities

top shortcuts

prompt for the number of processes to display on the screen

A

top -n

17
Q

Modify Process Execution Priorities

top shortcuts

prompt for the PID to apply renice to and the new priority

higher number == lower priority

A

top -r

18
Q

Modify Process Execution Priorities

top shortcuts

sort process IDs from high to low (reverse of default)

A

top -R