Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

lsof

Discrepancy with lsof command when trying to get the count of open files per process

August 10, 2022 by Magenaut

I am trying to get a list of open files per process. I ran the following one-liner from PerlMonks:

Categories Q&A, Unix & Linux Tags lsof Leave a comment

How do I detect running processes using a library package?

August 10, 2022 by Magenaut

This command is doing the rounds for detecting currently running processes using glibc:

Categories Q&A, Unix & Linux Tags lsof, shared-library Leave a comment

lsof: show files open as read-write

August 8, 2022 by Magenaut

When I try to remount a partition as read-only, I get an error /foo is busy. I can list all files open from /foo with

Categories Q&A, Unix & Linux Tags lsof Leave a comment

How do I monitor opened files of a process in realtime?

August 7, 2022 by Magenaut

I know I can view the open files of a process using lsof at that moment in time on my Linux machine. However, a process can open, alter and close a file so quickly that I won’t be able to see it when monitoring it using standard shell scripting (e.g. watch) as explained in “monitor open process files on linux (real-time)”.

Categories Q&A, Unix & Linux Tags audit, lsof, open-files, process Leave a comment

Best way to free disk space from deleted files that are held open

August 7, 2022 by Magenaut

Hi I have many files that have been deleted but for some reason the disk space associated with the deleted files is unable to be utilized until I explicitly kill the process for the file taking the disk space

Categories Q&A, Unix & Linux Tags deleted-files, lsof, open-files Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress