Tag

lsof

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Mar 29, 2025 · Operations

Mastering lsof: List Open Files, Processes, and Network Connections on Linux

This guide explains how to use the Linux lsof command‑line utility to list information about files opened by processes—including regular files, directories, sockets, and pipes—while covering options for filtering by file, directory, process name, user, PID, network connections, repeat mode, and more.

file descriptorslinuxlsof
0 likes · 10 min read
Mastering lsof: List Open Files, Processes, and Network Connections on Linux
Raymond Ops
Raymond Ops
Feb 21, 2025 · Operations

Mastering lsof: Essential Linux Commands to Inspect Open Files and Processes

lsof is a powerful Linux utility that lists open files, sockets, and network connections for processes; this guide explains its core options, output fields, and practical examples such as identifying files opened by specific processes, directories, users, network ports, and even recovering deleted files.

command linelinuxlsof
0 likes · 14 min read
Mastering lsof: Essential Linux Commands to Inspect Open Files and Processes
Practical DevOps Architecture
Practical DevOps Architecture
Oct 11, 2024 · Operations

Troubleshooting Disk Space Not Released After Deleting Files on Linux

This article explains why disk space may not be freed after deleting large log files on a Linux server, describes the underlying file system mechanisms, and provides a step‑by‑step troubleshooting guide using /tmp cleanup and the lsof command to identify and kill lingering processes.

Disk SpaceTroubleshootingfile deletion
0 likes · 7 min read
Troubleshooting Disk Space Not Released After Deleting Files on Linux
Efficient Ops
Efficient Ops
Aug 18, 2022 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

This guide shows step‑by‑step Linux commands—df, du, find, lsof, and tune2fs—to pinpoint large directories, uncover hidden space used by deleted files, and adjust reserved root space, helping you resolve mysterious disk‑space alerts efficiently.

Server Operationsdfdisk usage
0 likes · 4 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
Efficient Ops
Efficient Ops
Jan 17, 2022 · Operations

How to Recover Accidentally Deleted Files on Linux Using lsof and extundelete

This guide explains why careful file deletion matters, introduces Linux tools like lsof and extundelete for recovering mistakenly removed files, and provides step‑by‑step commands, installation instructions, and precautions to maximize recovery success while avoiding data loss.

Data Recoveryextundeletefile recovery
0 likes · 8 min read
How to Recover Accidentally Deleted Files on Linux Using lsof and extundelete
Efficient Ops
Efficient Ops
Jan 10, 2022 · Fundamentals

Why Does Disk Space Vanish? Uncovering Linux’s VFS and File Deletion Mysteries

Even when the `df` command shows a full disk, hidden deleted files held open by processes can consume space, and understanding this requires diving into Linux’s virtual file system architecture, including superblocks, inodes, file and dentry objects, as well as link types and file‑process interactions.

Disk SpaceFile SystemInode
0 likes · 12 min read
Why Does Disk Space Vanish? Uncovering Linux’s VFS and File Deletion Mysteries
Efficient Ops
Efficient Ops
Dec 30, 2021 · Operations

How to Recover Accidentally Deleted Linux Files with lsof and extundelete

This guide explains why careless file deletion can cause serious loss, introduces Linux tools like lsof and extundelete for recovering deleted files, and provides step‑by‑step commands for installing, locating open file descriptors, and restoring individual or all deleted data safely.

extundeletefile recoverylinux
0 likes · 8 min read
How to Recover Accidentally Deleted Linux Files with lsof and extundelete
Efficient Ops
Efficient Ops
Sep 28, 2021 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

This guide explains how to use Linux commands such as df, du, find, and lsof to quickly locate directories, files, or deleted resources that are consuming disk space, and shows how to adjust reserved space with tune2fs to recover seemingly missing storage.

Disk Spacedfdu
0 likes · 5 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
Efficient Ops
Efficient Ops
Jan 14, 2021 · Operations

How to Recover Accidentally Deleted Linux Files with lsof and extundelete

This guide explains why careful file deletion matters, introduces Linux tools like lsof and extundelete for recovering accidentally removed files, and provides step‑by‑step commands, installation instructions, and precautions to successfully restore data from ext3/ext4 partitions.

extundeletefile recoverylinux
0 likes · 8 min read
How to Recover Accidentally Deleted Linux Files with lsof and extundelete
Efficient Ops
Efficient Ops
Sep 23, 2020 · Fundamentals

Why Deleted Files Still Occupy Disk Space? A Deep Dive into Linux VFS

The article explains why a Linux system may report a full disk even after deleting files, detailing how open file handles keep space occupied, and walks through the virtual file system architecture—including superblocks, inodes, file and dentry objects—while demonstrating diagnostic commands like df, du, lsof, and illustrating link types and file‑process interactions.

Disk SpaceFile SystemInode
0 likes · 11 min read
Why Deleted Files Still Occupy Disk Space? A Deep Dive into Linux VFS
Efficient Ops
Efficient Ops
Jul 23, 2018 · Operations

Why lsof Misses Thousands of File Handles: Linux Kernel Secrets Revealed

The article explains the discrepancy between the file‑handle count reported by /proc/sys/fs/file‑nr and the numbers shown by lsof, clarifying the difference between file descriptors and file handles, describing how the kernel allocates struct file objects, and showing how shared memory, mmap, and other operations can inflate handle counts unnoticed by lsof.

file descriptorskernellinux
0 likes · 9 min read
Why lsof Misses Thousands of File Handles: Linux Kernel Secrets Revealed
Qunar Tech Salon
Qunar Tech Salon
May 24, 2015 · Operations

Understanding Filesystem Cache and Log Rotation with top, lsof, and Compression

The article explains how the Linux top command reveals filesystem cache usage, why large log files can waste cache memory, and proposes hourly log rotation with compression, using lsof to identify cached files and tools like zless to view compressed logs.

Filesystem Cachelinuxlog rotation
0 likes · 6 min read
Understanding Filesystem Cache and Log Rotation with top, lsof, and Compression