Shared Flashcard Set

Details

rhel 5 training guide ch 07
System Processes
35
Computer Science
Professional
05/04/2010

Additional Computer Science Flashcards

 


 

Cards

Term
ps -ef what's that do?
Definition
ps -ef
ps show the processes
-ef - e shows every process
f for full output
Term
PPID
Definition
Parent Process ID
Term
STIME
Definition
Process start time
Term
PID
Definition
Process ID
Term
ps -ef what does the heading C mean
Definition
process priority
Term
ps -ef what does the heading CMD mean?
Definition
Command or process name
Term
find the process ID of smbd
Definition
pidof smbd
Term
list all the process for the user root
Definition
pgrep -U root
Term
list all the process for user1
Definition
pgrep -U user1
Term
list all of the processes for group2
Definition
pgrep -G group2
Term
in GNOME, what program can you use to view processes
Definition
system monitor
gnome-system-monitor (command)
Administrator -> system monitor (menu)
Term
In KDE, what program can you use to view processes
Definition
The book says kpm,
Fedora KDE uses system monitor
Term
what is zombie state
Definition
a zombie process is listed in the process table, but takes no resources. It is just retained until the parent process permits it to die
Term
what are the five process states
Definition
running, sleeping, waiting, stopped, and zombie
Term
what is a waiting state, how is it different from a sleeping state
Definition
a waiting state is just waiting for its turn to run. A sleeping state is waiting for user input or waiting on another process
Term
what is a stopped state
Definition
the process is halted, won't run unless it is sent a signal to do so.
Term
nice values, what are their numbers
Definition
-20(highest priority) through +19(lowest priority)
Term
what determines the process priority
Definition
the nice value is assigned when the process initiates. A lower number means a higher priority
Term
ps, show the nice value
Definition
ps -l (long), shows the nice value in the column titled NI
Term
start system-config-users with a nice value of -2
Definition
nice -2 system-config-users
Term
start system-config-users with a nice value of +10
Definition
nice system-config-users
(with no options the default value is 10)
Term
show all the open files
Definition
lsof
list open files
Term
list all the signals that you can send to a process
Definition
kill -l
Term
kill signal number 1 is SIGHUP, what does that do?
Definition
hang-up signal, drops a phone or terminal connection, also forces a running daemon to re-read its configuration file
Term
signal number 2 sigint, what is it?
Definition
Interrupt signal, usually sent by a ^c (ctrl+c) from the keyboard
Term
SIGKILL, what is it
Definition
Kills a process abruptly by force
Term
SIGTERM, what is it
Definition
sends a process a soft termination signal. This is the kill default signal
Term
kill the process with PID 3067
Definition
kill 3067
Term
soft terminate cupsd (PID 4417)
Definition
kill 4417
or
kill -15 4417
or
kill -s 15 4417
or
kill -SIGTERM 4417
Term
soft terminate cupsd by name
Definition
pkill cupsd
or
pkill -15 cupsd
or
pkill -SIGTERM cupsd
Term
kill all the processes matching the cupsd criteria
Definition
killall cupsd
Term
forcefully kill 4417
Definition
kill -s 9 4417
Term
forcefully kill cupsd by name
Definition
pkill -9 cupsd
Term
how do you keep a process from running even if the terminal session is canceled. A large file copy for example
Definition
use nohup
Term
use nohup to cp a /opt/data1 to opt/data2
use the archive option too.
Definition
nohup cp -av /opt/data1 /opt/data2
Supporting users have an ad free experience!