'How to send USR2 signal?

I read that to upgrade nginx involves among other things sending the USR2 signal with kill -USR2 pid. So I tried sudo kill -USR2 3049 but got

$ sudo kill –USR2 3049
kill: failed to parse argument: '–USR2'


Solution 1:[1]

First invoke kill -l to list all signals

in some destro USR2 is SIGUSR2. also you can run it by it's number

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vahid abdi