Skip to content

Commit e366643

Browse files
authored
nice command, change the priority of a process
1 parent 8983a0d commit e366643

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,8 @@ Regular expressions.
673673

674674
- `pstree`: to print the tree of the processes.
675675
- `pidof firfox`: to print the id of the process firfox.
676+
- `nice`: to change the priority of a given process, `nice -n 10 vim /etc/passwd` run the vim process with a priority equal to 10.
677+
- a priority of a process range from -20(highest priority) to 19 (the lowest priority).
676678

677679
### top command:
678680
- `top` command will display the complete active process, cpu and memory information, `shift+p` will order the output based on cpu usage, `shift+m` will order based on memory usage, `c` to print the absolute path of the process, `k` to kill a process.

0 commit comments

Comments
 (0)