103.5 Create Monitor Kill Processes Flashcards
create monitor kill
process identification unique number on the system that can be used to refer to a running process
PID
Streams - Pipes - Redirects
displays process that were started and are running as the current or indicated user
ps
Streams - Pipes - Redirects
show a tree view (hierarchical ASCII or ncurses display) of running processes
pstree
Streams - Pipes - Redirects
provides info about system memory
total
in use
shared
buffers
cached
free
Streams - Pipes - Redirects
displays amount of time the system has been running since last boot/reboot and also provides info on how many users are currently on the system - and average load on the system in minutes values
1
5
15
uptime
Streams - Pipes - Redirects
sent to a process that it then reacts to depending on type of signal
signals
Streams - Pipes - Redirects
sends a nice kill command to the PID and allows the process to cleanly stop
terminate
release memory
close open files
kill
Streams - Pipes - Redirects
kills all instances of the named process
killall
Streams - Pipes - Redirects
process kills, kills processes based on
name
ID
user
session
terminal
pkill
Streams - Pipes - Redirects
allows for testing debugging of the pkill comand and displays process ID that will be affected (takes ALL pkill options to be able to determine what PID will be affected)
pgrep
Streams - Pipes - Redirects
will display status of jobs that have been paused
jobs
Streams - Pipes - Redirects
sends indicated job to the background and commonly used after the above jobs command to place a paused job into the background so it becomes active again
bg
Streams - Pipes - Redirects
bring indicated job to the foreground for bringing previous bg process to the foreground for use
fg
Streams - Pipes - Redirects
places a program into the background when run after a command
&
Streams - Pipes - Redirects
will run and place the vim editor in the background
vim &
Streams - Pipes - Redirects
scheduling and priorities are what Linux uses to run multiple apps/services/process on a single machine in multi-tasking manner
priority
Streams - Pipes - Redirects
default process
0
Streams - Pipes - Redirects
any user can start processes with priorities from
0 - 19
Streams - Pipes - Redirects
only root users can start processes with priorities from
0 to -20
Streams - Pipes - Redirects
allows you to start an app or process at the command line/terminal and then stop/exit/logout of the terminal or session while leaving the app or process running
nohup
Streams - Pipes - Redirects
potentially long running file command would stop if we log off machine close the terminal but nohup allows it to continue
ie
nohup find / -name “somefile” > output.txt
Streams - Pipes - Redirects
text-based session manager that can run multiple shell sessions independent of each other within a single window
screen
Streams - Pipes - Redirects
screen
can be used for local or remote connectivity as you would multiple terminals
screen sessions
Streams - Pipes - Redirects
screen
supports copy/paste between sessions
screen