srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/linux/linux-commands.md
diff options
context:
space:
mode:
Diffstat (limited to 'linux/linux-commands.md')
-rw-r--r--linux/linux-commands.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/linux-commands.md b/linux/linux-commands.md
new file mode 100644
index 0000000..77b6e02
--- /dev/null
+++ b/linux/linux-commands.md
@@ -0,0 +1,15 @@
+## Job Control
+# List jobs, job_id is the numerical value of the job
+$ jobs
+# suspend job into background, similar to pause so that one can can do something else
+<Ctrl-Z>
+# Can resume it's running in the background by:
+$ bg <job_id>
+# Bring it back to foreground by inserting:
+$ fg
+# Or this incase of multiple jobs:
+$ fg %<job_id>
+#To suspend the process running in the background, use:
+$ kill -STOP %job_id
+
+