aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/process/nice.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/process/nice.md')
-rw-r--r--src/process/nice.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/process/nice.md b/src/process/nice.md
new file mode 100644
index 0000000..bda743d
--- /dev/null
+++ b/src/process/nice.md
@@ -0,0 +1,15 @@
+# nice(1)
+
+Adjust `niceness` of a new command or running process.
+
+Niceness influences the scheduling priority and ranges between:
+- `-20` most favorable
+- `19` least favorable
+
+```sh
+# Adjust niceness +5 for the launched process.
+nice -n 5 yes
+
+# Adjust niceness of running process.
+renice -n 5 -p PID
+```