Skip to main content

Find Working Directory Of Some Process In Linux

Find Working Directory Of Some Process In Linux

If i found that any particular process is causing load while monitoring your Linux server, i would kill the process to get rid of it. Now, i found it is always better to identify the root cause of problem. Find out from which directory this process is running.

Then i know that it is very easy to identify the working directory of the process, first of all find out the ID of the process for which you wish to determine the working directory. Run the following comamnd :


ps -ef | grep Process-Name

where replace Process-Name with the name of the process, just like if you want to find out the process ID for firefox then run the command as:

ps -ef | gep firefox

Once you have determined the process ID, run the following command to find out its working directory.

pwdx processID

That’s it, Enjoy!

Popular posts from this blog

Rapidshare Premium Link Generator

Rapidshare Premium LINK Generator . Rapidshare.com is one of the biggest site that allow you to upload and share files with vary sizes. From rapidshare, you also can download files that another person upload the re. There are 2 kinds of user can download from rapidshare. First, free user, this user have limit features from rapidshare. Limit bandwidth, limit connection, etc. Second, premium user. Premium user have many features that free user doesn't have. If you want to be a premium user, you have to buy it from the web. You can use this link to buy premium account or from reseller that near you. But if you have not enough money to buy it, you can use Rapidshare Premium Link Generator . This is a website that give free service for anyone to generate rapidshare link from free to premium, so anyone can download with premium feature. <br><br>I...

Extend a LVM partition after increasing its virtual disk on Virtualbox

No Linux machine at work? the easy way could be to simply install Virtualbox in one of the PC, create a VDI and install Ubuntu 14.04 in it. But the day will come when you need more space! Here is how to resize it: Resize Virtualbox VDI Open Virtualbox, make sure to shutdown your virtual machine. Then open a terminal (here windows): 1 2 3 4 cd “ C : \ Program Files \ Oracle \ VirtualBox ” VBoxManage list vms VBoxManage clonehd uuid 0000000000000000 backup . vdi VBoxManage modifyhd uuid 0000000000000000 -- resize 204800 This is the Virtualbox official manual  of available commands. And  this is a website  to convert Gb into Mb (–resize takes Mb as input, 200Gb = 204800Mb). Boot Gparted to resize the partition After a default install of Ubuntu Server on one physical disk, you will have a SWAP partition, and then an extended partition in which you’ll have your LVM partition (So 3 partitions).  Download Gparted  .iso,...

Delete hiberfil.sys in Windows

Windows device certainly has a Sleep and Hibernate function. This function minimizes the electrical power consumption of the device which is much less when it's on. But a common reason for users to hibernate or sleep is the desire to turn on their computer faster or allow the file being opened not to close directly.  Sleep and Hibernate modes have different function, where Sleep mode uses only the minimum amount of electricity / battery consumption to keep information in your PC's memory. While Hibernate Mode saves more power by writing information in memory to the hard drive and turning it off, the benefit is to get your PC back on faster than bringing it from a completely inactive state and that's where the hiberfil.sys file works. Hibernate mode will create file hiberfil.sys on computer. The size will increase depend on  How to disable hibernate mode is almost the same in Windows 10, 8, 7, and Vista. You must use the Command Prompt as an administrator to complete i...