Cheatography
https://cheatography.com
Notes for CompTIA Linux exam
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Monitor Active Processes (bg/fg)
bg |
sends active process to background |
bg %command |
sends named process to background |
bg %2 |
sends numbered process to background |
command & |
sends named process to background |
Ctrl+z |
Suspends active process |
fg %command |
sends named process to foreground |
fg %2 |
sends numbered process to foreground |
Monitor Active Processes (job)
job |
an alternate way of listing your own processes |
-l |
returns names of jobs and their PIDs |
-r |
returns list of currently running jobs |
-s |
returns list of stopped jobs |
|
|
Monitor Active Processes (ps)
ps |
returns PIDs of processes running under your account |
a or -a |
lists all processes running on a terminal |
e |
returns details of shell environment |
f |
returns output as a tree structure |
l or -l |
returns more detailed listing of processes |
u |
returns username and start time form processes |
x |
lists processes without associated terminal |
Monitor Active Processes (kill)
Ctrl+c |
Kills foreground process instantly |
-1 or SIGHUP |
stops and restarts process |
-9 or SIGKILL |
kills processes that refuse to terminate |
-15 or SIGTERM |
kills process but allows it to exit |
-18 or SIGCONT |
used to continue a suspended process |
-19 or SIGSTOP |
used to suspend a process |
-20 or SIGTSTP |
as -19, has same result as Ctrl+z |
|
|
Monitor Active Processes (top)
top |
up-to-date details about system resources used by processes |
-d |
specifies time between refreshes |
-i |
prevents sleeping/inactive processes |
-n |
refreshes output number of times specified |
-p |
monitors process you specify |
-s |
runs in secure mode, interactive commands disabled |
Title
Newfile |
Description |
New Story |
New story |
Even bigger story |
Yippee |
|