Information Technology Reference
In-Depth Information
Summary
Commands, such as
ps
and
prstat
, are used to identify attributes about exe-
cuting processes such as process name, Process ID (PID), process owner, and
so on.
Keep in mind that
SIGTERM (15)
is the default signal used by the
ps
com-
mand, but can be ignored by a process. Specifying
SIGKILL (9)
as the signal
is a “sure kill” because a process cannot ignore it.
The
kill
command requires that the process be identified by its PID. Using
pkill
allows a process to be identified by other attributes such as process
name or User ID (UID) of process owner.
The
pgrep
command returns the PID of the process that is identified by
process name or some other attribute.
The
cron
command and associated
crontab
files are used for running
processes multiple times on a scheduled basis, whereas the
at
command runs
a command once at a specified time.