Opened File Accessor

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

Tags:
  1. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    19
    5
    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

    Mar 11, 2019
    23
    9
    0
    you can let me know
     
  3. John Sutherland

    John Sutherland MDL Addicted

    Oct 15, 2014
    737
    1,042
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Xolvix1

    Xolvix1 MDL Novice

    Oct 26, 2015
    9
    0
    0
    I don't think he's coming back...
     
  5. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    19
    5
    0