Tagged articles
88 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Apr 30, 2026 · Operations

Disk Full on Linux? Run These 8 Diagnostic Commands First

When a Linux server reports a full disk, this guide walks you through eight essential commands to diagnose whether the issue is actual space exhaustion, inode depletion, lingering deleted files, or I/O bottlenecks, and provides a systematic cleanup workflow for production environments.

Linuxdfdisk space
0 likes · 19 min read
Disk Full on Linux? Run These 8 Diagnostic Commands First
dbaplus Community
dbaplus Community
Apr 26, 2026 · Operations

Why the Lsof Command Is an Underrated Lifesaver in Production

The article explains how the Linux lsof utility can quickly identify port conflicts, lingering deleted files, and file‑handle leaks, offering practical commands, real‑world case studies, advanced options, performance tips, and integration techniques for effective system troubleshooting.

LinuxPerformance Optimizationfile handles
0 likes · 12 min read
Why the Lsof Command Is an Underrated Lifesaver in Production
Liangxu Linux
Liangxu Linux
Sep 27, 2025 · Operations

Quickly Identify and Release Occupied Ports on Linux

This guide explains what port occupation means on Linux, demonstrates how to use lsof and netstat to pinpoint the process holding a specific port, and shows how to safely terminate that process to free the port for your applications.

LinuxSystem Administrationkill
0 likes · 6 min read
Quickly Identify and Release Occupied Ports on Linux
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.

LinuxNetwork Connectionslsof
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.

Linuxcommand-linelsof
0 likes · 14 min read
Mastering lsof: Essential Linux Commands to Inspect Open Files and Processes
dbaplus Community
dbaplus Community
Nov 17, 2024 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

When a Linux server triggers a disk‑space alert, you can pinpoint the offending directories or files by using df to view overall usage, du (with depth or max‑depth) or find to list large items, and lsof +L1 to detect deleted files still holding space, then optionally adjust reserved space with tune2fs.

Linuxdfdisk space
0 likes · 5 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
Liangxu Linux
Liangxu Linux
Oct 1, 2024 · Operations

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

This guide explains how to use the Linux lsof command to list information about open files, processes, directories, sockets, and network connections, covering basic usage, column meanings, filtering options, repeated mode, and practical examples for system administration tasks.

LinuxNetwork Connectionscommand-line
0 likes · 12 min read
Mastering lsof: List Open Files, Processes, and Network Connections on Linux
Open Source Linux
Open Source Linux
Aug 20, 2024 · Fundamentals

Mastering lsof: How to List Open Files and Network Connections on Linux

This guide explains how to use the powerful lsof command to list information about files opened by processes, filter results by file type, user, process name, directory, network connections, and even repeatedly monitor changes, providing practical examples and code snippets for Linux administrators.

LinuxNetwork Connectionscommand-line
0 likes · 11 min read
Mastering lsof: How to List Open Files and Network Connections on Linux
Liangxu Linux
Liangxu Linux
May 4, 2024 · Operations

Master Linux I/O Monitoring: iostat, iotop, and lsof Explained

This guide introduces three essential Linux I/O commands—iostat for disk activity statistics, iotop for real‑time I/O usage per process, and lsof for listing open files—detailing installation, output interpretation, key parameters, and practical usage examples.

I/O MonitoringLinuxSystem Administration
0 likes · 10 min read
Master Linux I/O Monitoring: iostat, iotop, and lsof Explained
Liangxu Linux
Liangxu Linux
Mar 3, 2024 · Operations

How to Use LSOF for Real‑Time Port Monitoring on Linux

This tutorial explains how to use the Linux LSOF command to list open files, identify processes using specific ports, filter TCP connections, and continuously monitor network activity in real time with customizable intervals.

System Administrationcommand-linelsof
0 likes · 8 min read
How to Use LSOF for Real‑Time Port Monitoring on Linux
Liangxu Linux
Liangxu Linux
Feb 3, 2024 · Operations

Master Linux I/O Monitoring: iostat, iotop, and lsof Explained

This guide introduces three essential Linux I/O commands—iostat for overall I/O statistics, iotop for real‑time per‑process I/O usage, and lsof for listing open files—showing how to install, run, interpret their output, and use common options.

I/OLinuxiostat
0 likes · 9 min read
Master Linux I/O Monitoring: iostat, iotop, and lsof Explained
MaGe Linux Operations
MaGe Linux Operations
Jan 15, 2024 · Operations

Master Linux I/O Monitoring: iostat, iotop, and lsof Explained

This guide introduces three essential Linux I/O tools—iostat for disk activity and CPU stats, iotop for real‑time per‑process I/O usage, and lsof for listing open files—detailing installation, key output fields, common options, and practical usage examples.

I/O MonitoringLinuxiostat
0 likes · 9 min read
Master Linux I/O Monitoring: iostat, iotop, and lsof Explained
Liangxu Linux
Liangxu Linux
Aug 5, 2023 · Operations

Mastering lsof: List Open Files and Diagnose Linux Systems

This guide explains the purpose of the lsof command, its syntax, the types of files it can list, common options, and provides dozens of practical examples for inspecting processes, network connections, and file descriptors on Linux systems.

Linuxlsofopen files
0 likes · 13 min read
Mastering lsof: List Open Files and Diagnose Linux Systems
Liangxu Linux
Liangxu Linux
Feb 6, 2023 · Operations

Recover Deleted Linux Files While Their Processes Remain Open

This guide explains how a file deleted on a Linux system can still be recovered when a running process holds an open file descriptor, detailing the use of tail, lsof, the /proc filesystem, and simple copy commands to restore the data.

File RecoveryLinuxcommand-line
0 likes · 5 min read
Recover Deleted Linux Files While Their Processes Remain Open
dbaplus Community
dbaplus Community
Dec 19, 2022 · Operations

Boost Your Linux Productivity with 10 Essential Command‑Line Tools

This guide introduces ten lesser‑known Linux commands—including rsync, screen, lsof, vimdiff, netcat, and more—explaining their key options, practical use‑cases, and example invocations so you can work faster, automate tasks, and troubleshoot systems efficiently.

LinuxSystem Administrationcommand-line
0 likes · 9 min read
Boost Your Linux Productivity with 10 Essential Command‑Line Tools
Full-Stack DevOps & Kubernetes
Full-Stack DevOps & Kubernetes
Dec 10, 2022 · Cloud Native

Why Kubernetes Pods Fail with “Too Many Open Files” and How to Fix It

The article explains the “Too many open files” error in Kubernetes, clarifies that it refers to exceeding system file‑handle limits, shows how to inspect current usage with ulimit and lsof, and provides step‑by‑step commands to temporarily or permanently raise the limits and troubleshoot the application code.

DevOpsKubernetesToo many open files
0 likes · 5 min read
Why Kubernetes Pods Fail with “Too Many Open Files” and How to Fix It
Liangxu Linux
Liangxu Linux
Nov 28, 2022 · Operations

How to Diagnose and Free Unexpected Linux Disk Space Usage

Learn step‑by‑step Linux techniques to locate hidden disk consumers—using df, du, find, lsof, and tune2fs—to resolve mismatched usage reports, delete lingering open files, and adjust reserved space, ensuring your server’s storage stays under control.

Linuxcommand-linedisk-management
0 likes · 6 min read
How to Diagnose and Free Unexpected Linux Disk Space Usage
Liangxu Linux
Liangxu Linux
Nov 1, 2022 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

This guide shows Linux administrators how to use df, du, find, lsof, and tune2fs commands to locate large directories, uncover hidden space consumed by deleted files, and adjust filesystem reserved space, with step‑by‑step examples and screenshots.

Linuxdisk spacedu
0 likes · 5 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
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.

dfdisk usagedu
0 likes · 4 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
Liangxu Linux
Liangxu Linux
Apr 20, 2022 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

When a Linux server raises a disk‑space alarm, this guide shows step‑by‑step how to locate the offending directories or files using df, du, find, lsof and tune2fs, and explains why reported usage may differ from summed directory sizes.

Operationsdufind
0 likes · 4 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
Open Source Linux
Open Source Linux
Apr 1, 2022 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

This guide explains how to locate large directories and files consuming disk space on Linux servers using commands like df, du, find, lsof, and tune2fs, and offers tips for handling hidden or deleted file usage.

LinuxServer Administrationdisk usage
0 likes · 4 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
Open Source Linux
Open Source Linux
Jan 28, 2022 · Fundamentals

Why Disk Space Stays Full After Deleting Files? Inside Linux VFS and Inodes

Even when a Linux system reports a full disk, deleted files may still occupy space because active processes keep them open; using commands like df, du, and lsof reveals hidden usage, and understanding the virtual file system, inode structures, and link management explains how to release the space.

Filesystem FundamentalsLinuxdisk space
0 likes · 11 min read
Why Disk Space Stays Full After Deleting Files? Inside Linux VFS and Inodes
Liangxu Linux
Liangxu Linux
Jan 24, 2022 · Fundamentals

Why Does Disk Space Appear Full Even When Files Are Deleted? Understanding Linux VFS

The article explains why Linux can report a full disk despite apparent free space, showing how deleted files held open by processes keep their blocks allocated, and walks through using df, du, and lsof to identify the issue, then details the virtual file system architecture, inode handling, and file‑deletion mechanics.

disk spaceinodelsof
0 likes · 12 min read
Why Does Disk Space Appear Full Even When Files Are Deleted? Understanding Linux VFS
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 RecoveryFile RecoveryLinux
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.

Linuxdisk spacefile system
0 likes · 12 min read
Why Does Disk Space Vanish? Uncovering Linux’s VFS and File Deletion Mysteries
MaGe Linux Operations
MaGe Linux Operations
Jan 9, 2022 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

Learn step-by-step methods to locate large directories and files consuming disk space on Linux servers, using commands like df, du, find, and lsof, plus tips for handling deleted files and adjusting reserved space with tune2fs to reclaim lost storage.

du commandfind commandlsof
0 likes · 4 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
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.

File RecoveryLinuxextundelete
0 likes · 8 min read
How to Recover Accidentally Deleted Linux Files with lsof and extundelete
Open Source Linux
Open Source Linux
Nov 14, 2021 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

Learn step-by-step Linux techniques—including df, du, find, and lsof commands—to pinpoint large directories or files, filter results, handle hidden space consumption, and adjust reserved filesystem space, ensuring you can efficiently resolve unexpected disk usage issues on your servers.

LinuxOperationsdf
0 likes · 4 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
Liangxu Linux
Liangxu Linux
Nov 7, 2021 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

This guide explains how to diagnose unexpected disk usage on Linux by using df, du, find, and lsof commands, demonstrates efficient ways to locate large directories or deleted files, and shows how to adjust reserved space with tune2fs to reclaim lost storage.

LinuxOperationsdisk space
0 likes · 5 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
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.

Linuxdfdisk space
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.

File RecoveryLinuxSystem Administration
0 likes · 8 min read
How to Recover Accidentally Deleted Linux Files with lsof and extundelete
ITPUB
ITPUB
Dec 14, 2020 · Operations

How to Recover Accidentally Deleted Linux Files with lsof and extundelete

This guide explains why careless file deletion can be disastrous, then walks through two Linux recovery techniques—using lsof to capture still‑open deleted files and employing extundelete to restore data from ext3/ext4 partitions—complete with commands, parameters, and practical tips.

File RecoverySystem Administrationextundelete
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.

Linuxdfdisk space
0 likes · 11 min read
Why Deleted Files Still Occupy Disk Space? A Deep Dive into Linux VFS
Liangxu Linux
Liangxu Linux
Sep 5, 2020 · Operations

Why Deleting Large Files Doesn’t Free Disk Space on Linux and How to Fix It

When a large file is deleted on a Linux server but the '/' partition still reports 100% usage, a running process likely still holds the file open, preventing space reclamation; this article explains the cause, shows how to find deleted‑but‑in‑use files with lsof, and offers recovery steps such as killing processes, restarting services, truncating logs, and adjusting reserved block percentages.

Linuxfile deletionlsof
0 likes · 10 min read
Why Deleting Large Files Doesn’t Free Disk Space on Linux and How to Fix It
Liangxu Linux
Liangxu Linux
Aug 17, 2020 · Operations

Recover Deleted Linux Files: From Open Descriptors to Extundelete

This guide explains how to restore accidentally deleted files on Linux by handling two scenarios—when the deleting process still holds an open file descriptor and when it has terminated—using lsof, /proc tricks, and the extundelete utility with step‑by‑step commands.

File RecoveryLinuxextundelete
0 likes · 8 min read
Recover Deleted Linux Files: From Open Descriptors to Extundelete
Open Source Linux
Open Source Linux
Aug 4, 2020 · Operations

Recover Accidentally Deleted Linux Files with lsof and extundelete

This guide explains how to restore mistakenly removed Linux files by first checking if the deleting process still holds the file descriptor using lsof, then copying the open file from /proc, and finally using the extundelete tool when the process has already terminated.

File RecoveryLinuxSystem Administration
0 likes · 7 min read
Recover Accidentally Deleted Linux Files with lsof and extundelete
Liangxu Linux
Liangxu Linux
Jul 8, 2020 · Operations

How to Delete Log Files Recursively and Free Disk Space on Linux

This article walks through common interview questions about removing log files, demonstrates safe recursive deletion with find, explains why deleted files may still occupy space when opened, shows how to identify and clean them using lsof, logrotate, and crontab, and clarifies the differences between soft and hard links.

Hard Linkfindlog-management
0 likes · 9 min read
How to Delete Log Files Recursively and Free Disk Space on Linux
Liangxu Linux
Liangxu Linux
Jun 30, 2020 · Operations

Why Deleting a Linux File Doesn’t Free Space – and How to Recover It

This guide shows how a file can appear deleted on Linux yet still occupy disk space, explains the inode reference‑count mechanism, demonstrates how to reproduce the issue with dd and a C program, and provides commands like lsof and /proc inspection to locate and release such hidden usage.

C programmingLinuxdisk space
0 likes · 6 min read
Why Deleting a Linux File Doesn’t Free Space – and How to Recover It
Open Source Linux
Open Source Linux
Jun 15, 2020 · Fundamentals

Why Deleting a File on Linux Doesn’t Always Free Disk Space

This article explains how Linux file deletion works, why space may not be released when a file is removed, and shows practical commands and a C example to illustrate inode reference counting, using tools like df, dd, lsof, and proper file‑descriptor handling.

c-programdddisk space
0 likes · 7 min read
Why Deleting a File on Linux Doesn’t Always Free Disk Space
Liangxu Linux
Liangxu Linux
Mar 11, 2019 · Information Security

How to Detect and Recover From Linux Server Intrusions: Practical Steps

This guide outlines ten practical methods for Linux administrators to identify compromised machines on CentOS, including log inspection, checking /etc/passwd and /etc/shadow, analyzing login records, monitoring network traffic, and using lsof to recover deleted log files, with step‑by‑step commands and examples.

File Recoveryintrusion detectionlog analysis
0 likes · 7 min read
How to Detect and Recover From Linux Server Intrusions: Practical Steps
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.

Kernelfile-descriptorslsof
0 likes · 9 min read
Why lsof Misses Thousands of File Handles: Linux Kernel Secrets Revealed
MaGe Linux Operations
MaGe Linux Operations
May 26, 2017 · Operations

How to Quickly Detect Occupied Linux Ports with Python

This guide shows how to use Linux commands such as lsof and netstat to identify occupied ports, explains the meaning of key parameters, and provides a Python script that monitors specified IP ports for availability, complete with example output.

PythonSystem Administrationlsof
0 likes · 2 min read
How to Quickly Detect Occupied Linux Ports with Python
Java High-Performance Architecture
Java High-Performance Architecture
Jan 21, 2016 · Operations

Master lsof: Inspect Open Files, Find Processes, and Recover Deleted Data

This guide introduces the lsof utility, explains its basic usage for listing open files, demonstrates practical scenarios such as identifying files used by specific processes, checking which process occupies a port, and leveraging lsof to recover deleted files, helping administrators troubleshoot I/O and security issues.

File RecoveryLinuxSystem Administration
0 likes · 4 min read
Master lsof: Inspect Open Files, Find Processes, and Recover Deleted Data
MaGe Linux Operations
MaGe Linux Operations
Jul 27, 2015 · Information Security

Master lsof: Unlock Hidden Files and Network Connections on Unix

This comprehensive guide explains how to use the powerful lsof command to list open files, inspect network connections, filter by users, processes, ports, and hosts, and apply advanced options for system monitoring and security troubleshooting on Unix-like systems.

Network MonitoringUnixlsof
0 likes · 13 min read
Master lsof: Unlock Hidden Files and Network Connections on Unix