103.5 Create Monitor Kill Processes Flashcards

1
Q

create monitor kill

process identification unique number on the system that can be used to refer to a running process

A

PID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Streams - Pipes - Redirects

displays process that were started and are running as the current or indicated user

A

ps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Streams - Pipes - Redirects

show a tree view (hierarchical ASCII or ncurses display) of running processes

A

pstree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Streams - Pipes - Redirects

provides info about system memory
total
in use
shared
buffers
cached

A

free

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

uptime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Streams - Pipes - Redirects

sent to a process that it then reacts to depending on type of signal

A

signals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Streams - Pipes - Redirects

sends a nice kill command to the PID and allows the process to cleanly stop
terminate
release memory
close open files

A

kill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Streams - Pipes - Redirects

kills all instances of the named process

A

killall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Streams - Pipes - Redirects

process kills, kills processes based on
name
ID
user
session
terminal

A

pkill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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)

A

pgrep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Streams - Pipes - Redirects

will display status of jobs that have been paused

A

jobs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

bg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Streams - Pipes - Redirects

bring indicated job to the foreground for bringing previous bg process to the foreground for use

A

fg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Streams - Pipes - Redirects

places a program into the background when run after a command

A

&

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Streams - Pipes - Redirects

will run and place the vim editor in the background

A

vim &

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Streams - Pipes - Redirects

scheduling and priorities are what Linux uses to run multiple apps/services/process on a single machine in multi-tasking manner

17
Q

Streams - Pipes - Redirects

default process

18
Q

Streams - Pipes - Redirects

any user can start processes with priorities from

19
Q

Streams - Pipes - Redirects

only root users can start processes with priorities from

20
Q

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

21
Q

Streams - Pipes - Redirects

potentially long running file command would stop if we log off machine close the terminal but nohup allows it to continue

A

ie

nohup find / -name “somefile” > output.txt

22
Q

Streams - Pipes - Redirects

text-based session manager that can run multiple shell sessions independent of each other within a single window

23
Q

Streams - Pipes - Redirects

screen

can be used for local or remote connectivity as you would multiple terminals

A

screen sessions

24
Q

Streams - Pipes - Redirects

screen

supports copy/paste between sessions

25
Streams - Pipes - Redirects screen scrolling bugger per session
screen
26
Streams - Pipes - Redirects screen supports output logging
if configured
27
Streams - Pipes - Redirects screen ability to detach - abandon a window and allows programs launched within to keep running
screen
28
Streams - Pipes - Redirects screen options open new session
ctl+a then c ctl+ac
29
Streams - Pipes - Redirects screen options move back to previous session
ctl+a then p ctl+ap
30
Streams - Pipes - Redirects screen options move to next session
ctl+a then n ctl +an
31
Streams - Pipes - Redirects screen options display list of available sessions (numeric id)
ctl+a then display list of available sessions (numeric id) after numbers are shown pressing corresponding number and enter will switch to that session
32
Streams - Pipes - Redirects screen options detach from screen (process still running)
ctl+a then d ctl+ad
32
Streams - Pipes - Redirects screen options lock the screen
ctl+a then x ctl +ax prompts twice for p/w to unlock
33
Streams - Pipes - Redirects screen options show screens
screen -ls
34
Streams - Pipes - Redirects screen options reattach to the screen
screen -r