Opened File Accessor

Discussion in 'Operating System' started by Gabriel9999, May 28, 2019.

  1. Gabriel9999

    Gabriel9999 New Member

    Joined:
    Mar 12, 2019
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    I want to remove a file in my home directory. But when i try to remove with rm command i can not because given file is used by other processes. How can a find or list the processes which is opened or using this file?
     
  2. samueltarcin9999

    samueltarcin9999 New Member

    Joined:
    Mar 12, 2019
    Messages:
    15
    Likes Received:
    11
    Trophy Points:
    3
    There are a lot different ways to a process which is using given file. But fuser command can be used to list users who is using given files. Fuser/home/john/test.txt will list processes wich opened test.txt file.
     
    Gabriel9999 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice