[clug] Finding processes by working directory
kim.holburn at anu.edu.au
Mon Apr 5 05:02:47 GMT 2004
At 2:47 PM +1000 04/4/5, Darren Freeman wrote:
>I am often frustrated by trying to unmount a partition and being told
>it's in use.
>How do I hunt down the offending process?
apart from fuser (which can also kill the offending processes you can use lsof.
lsof <directory name>
Network Consultant - Telecommunications Engineering
Research School of Information Sciences and Engineering
Australian National University - Ph: +61 2 61258620 M: +61 0417820641
Email: kim.holburn at anu.edu.au - PGP Public Key on request
Life is complex - It has real and imaginary parts.
Andrea Leistra (rec.arts.sf.written.Robert-jordan)
More information about the linux