srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/linux/linux-commands.md
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2022-11-21 21:31:12 +0200
committersrdusr <[email protected]>2022-11-21 21:31:12 +0200
commit0f155d91bf486d06d6b83448e56b4e5eedc7a723 (patch)
treeb4d592fedfdf44bbd46417e9892bf7eebbc3a087 /linux/linux-commands.md
parent03a231babfd946833f1f089f92b996d81432ff48 (diff)
downloadnotes-0f155d91bf486d06d6b83448e56b4e5eedc7a723.tar.gz
notes-0f155d91bf486d06d6b83448e56b4e5eedc7a723.zip
Added useful command to copy text into output file in case not using a graphical term
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