List running processes in terminal, filter and kill them, if required

You can list all the running processes in linux terminal using the following command :

List running process :

ps -aef

If you want more information you can use the following command :

ps -aef | more

You can filter particular process as well. For example, if you can’t find out where does a node.js app running, you can use the following command.

Filter running process :

ps -aef | grep 'node'

If you want to filter a process running on a particular port you can use the following command :

ps -aef | grep 443

Once you find the process you can kill it using the following command :

Kill any running processes :

kill -9 PID

replace the PID with process id which you find using grep.

You may also like...