Find the answer to your Linux question:
Results 1 to 4 of 4
Hello all this is my first post on here. I was wondering if there is any way to tell what programs or process's are access a certain file. This is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    File access


    Hello all this is my first post on here. I was wondering if there is any way to tell what programs or process's are access a certain file. This is just a linux text file. Thanks

  2. #2
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    What do you mean? Do you want to gather information about which processes currently use a file? This can be achieved with lsof or the more lightweight fuser.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    Yes what process access it and if possible what time etc. What is happening at work there is a file and a BMC portal patrol agent program sends a warning saying the file cant be accessed and it is at random times, so I think something else is accessing it at the same time. thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! jdkaye's Avatar
    Join Date
    Aug 2010
    Location
    Gorizia, Italy
    Posts
    65
    You want fuser.
    FUSER(1) User Commands FUSER(1)

    NAME
    fuser - identify processes using files or sockets
    ciao,
    jdk

Posting Permissions

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