I am going through a tutorial on recovering from a database failure and in the tutorial, a failure on the host of the primary database is simulated with:
kill -9 <>
I know that the kill
command is used to send a signal to a process, and that 9
represents the SIGKILL
signal that terminates a process, but what does the <>
argument stand for?
I have read the manual pages for the kill
command but still cannot figure out why and what for <>
is used.
You're supposed to replace the
<>
by the process id. To get the process id, you can use the commandIt will list all the processes, and you just have to choose the right process
If you have a single instance of a process, you can also use the
pkill
commmand with the name of the process, egIt is
in manpage. There is always description inside of the
<>
quotes.<>
in the man page means replace<>
with PID.In addition to the answer by Felicien using the
ps
command, you can also usetop
orhtop
Use
-d <>
(duration) to update every<>
seconds.To kill the process, simply note the PID and kill the process ID with:
Note: for
htop
, you will need to typehtop -d 100
ie;10
seconds.