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, 8 insertions, 7 deletions
diff --git a/linux/linux-commands.md b/linux/linux-commands.md
index 77b6e02..35b329b 100644
--- a/linux/linux-commands.md
+++ b/linux/linux-commands.md
@@ -1,15 +1,16 @@
## Job Control
-# List jobs, job_id is the numerical value of the job
+* 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
+* 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:
+* Can resume it's running in the background by:
$ bg <job_id>
-# Bring it back to foreground by inserting:
+* Bring it back to foreground by inserting:
$ fg
-# Or this incase of multiple jobs:
+* Or this incase of multiple jobs:
$ fg %<job_id>
-#To suspend the process running in the background, use:
+* To suspend the process running in the background, use:
$ kill -STOP %job_id
-
+## Copy text/output into a file (useful if in putty/non graphical terminal emulator)
+$ <command> 2>&1 | tee output-file