Ubuntu – What does the “<>” mean in “kill -9 <>”

command linekill

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.

Best Answer

You're supposed to replace the <> by the process id. To get the process id, you can use the command

ps -aux

It 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, eg

pkill -9 mysql