The phpstorm is not responding and i want to kill the process.
this is the location of instalation: /opt/phpstorm/PhpStorm-143.1770/bin
.
i cannot close it with the X button so please help me to close / restart it with the command line.
thanks.
All "processess" that are active can be seen with the "ps" command. From command line you can type ...
ps -ef | grep phpstorm
it will list all the process IDs
$ ps -ef| grep phpstorm
rinzwind 2819 2812 0 11:28 ? 00:00:00 phpstorm
rinzwind 2849 2820 0 11:29 pts/1 00:00:00 grep --color=phpstorm
The line with the "grep" is what you search for. The other one the executable. A simple ...
kill -9 2819
will stop "phpstorm".
A shorter method:
pgrep -f phpstorm
will list just the process ID and ...
kill -9 $(pgrep -f phpstorm)
will kill it.
Programs like "top" and "htop" can be used to list running processes.
kill -9 'pid1 pid2'
won't! A comment from nicolas-bonnici: "You need to remove the quotes in order to make it work: kill -9 $(pgrep -f phpstorm)
"
Mar 18, 2018 at 15:51