kill process in linux

1. Use this command.

# ps -ef | grep -i <your-target-process>

OR

# ps aux | grep <your-target-process>

e.g: # ps -ef | grep -i jboss

2. Then, choose your target Process ID

# kill 9821

OR

# kill -9 9821

note: -9 is special Kill signal, which kill the process

# killall -9 <your-target-process>

e.g: # killall -9 firefox

3. Finish