Finding the disk path of a process

Asked By 40 points N/A Posted on -
qa-featured

I'm using Ubuntu these days and the CPU usage of Ubuntu is quite low. I want to find out the disk path of any process on Ubuntu and delete the files related to unnecessary to boost my PC.

1. How can I find the disk path of a process on Ubuntu?

2. Is there any software to do this?

 

 

SHARE
Answered By 0 points N/A #180642

Finding the disk path of a process

qa-featured
Actually you no need to use any software to find out the disk path of any process on Ubuntu and delete the files related to unnecessary to boost the PC. Instead, you can simply run these commands,
 
For example, If your search is related to process synergy, then the command should be like this,
ps -o command= -p "$(ps -C synergy -o pid=)" | xargs which
 
If you need to know only about where the executable is currently rooted, you can simply use the "which…" command.
Example- which synergy
 
After detecting the necessary processes, you can simply kill them with the command,
killall process-name
Example- killall firefox
 
Best Regards!

Login/Register to Answer

Related Questions