This command is useful when we want to locate the log path of a specific process.
To find the process id, we can use the Activity Monitor or try the command:
Someone has suggested a more powerful command:
kill command will kill a process using the kill signal and PID given by the user. To use the SIGKILL signal with “kill”, type one of the following for a process with a PID of 1710.
killall [-SIGNAL] [process name] - The killall command kills all process with a particular name. Its default signal is
We can specify other specific signal such as KILL(9)
To check the available signals
Here is a list of available signals for reference:
This command is a lot like killall except it allows partial names. So,
pkill -9 unity will kill any process whose name begins with “unity”.
pkill can also kill all processes owned by a particular user -
pkill -9 -u USERNAME.