# pgrep process
For example:
# pgrep firefox 587 566
The process ID is displayed in the output.
# pkill [signal] PID
When no signal is included in the pkill command-line syntax, the default signal that is used is -15 (SIGKILL). Using the -9 signal (SIGTERM) with the pkill command ensures that the process terminates promptly. However, do not use the -9 signal to kill certain processes such as a database process or an LDAP server process because data might be lost.
The process ID of the process to terminate.
# pgrep process
The process you terminated should not be listed.