Opened File Accessor

Discussion in 'Linux' started by Gabriel9999, May 28, 2019.

Tags:
  1. Gabriel9999

    Gabriel9999 MDL Novice

    Joined:
    Mar 11, 2019
    Messages:
    37
    Likes Received:
    5
    Trophy Points:
    0
    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 MDL Novice

    Joined:
    Mar 11, 2019
    Messages:
    37
    Likes Received:
    10
    Trophy Points:
    0
  3. samueltarcin9999

    samueltarcin9999 MDL Novice

    Joined:
    Mar 11, 2019
    Messages:
    37
    Likes Received:
    10
    Trophy Points:
    0
    you can let me know
     
  4. John Sutherland

    John Sutherland MDL Addicted

    Joined:
    Oct 15, 2014
    Messages:
    836
    Likes Received:
    1,247
    Trophy Points:
    30
    Hello @Gabriel9999 - Sounds like an issue related to permissions. Have you tried taking ownership of the /home directory and all of it's contents?

    From the Terminal: sudo chown -R username:username /home/username

    Before doing that, there's one thing I'd like to know: Does this file normally appear in one of the regular /home folders, such as Documents, Downloads, Music, Pictures, Videos, etc? Or is it a hidden file? Usually a hidden file is hidden for a very deliberate reason, i.e. if you don't know it's there, you won't be tempted to edit it or delete it. If it's a hidden file, be careful, you could break something by deleting it.
     
  5. Xolvix1

    Xolvix1 MDL Novice

    Joined:
    Oct 26, 2015
    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    0
    I don't think he's coming back...
     
  6. Gabriel9999

    Gabriel9999 MDL Novice

    Joined:
    Mar 11, 2019
    Messages:
    37
    Likes Received:
    5
    Trophy Points:
    0