Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, What is the command to know which process is using a certain file ? Thanks, Frederic...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    2

    Command to know which process is using a certain file


    Hi all,

    What is the command to know which process is using a certain file ?

    Thanks,
    Frederic

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Code:
    lsof
    is what you want.

    to see what's using a file (lets say "filename") use:

    Code:
    lsof | grep filename
    should sufffice
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Calcutta, India
    Posts
    220
    i thought it was :
    Code:
    fuser [files | filesystems]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •