Tagged articles
file deletion
24 articles · Page 1 of 1
This article explains how file deletion works, why data remains recoverable until overwritten, compares recovery difficulty across HDDs, SSDs, USB drives, and cloud storage, outlines step-by-step methods for common scenarios like accidental deletion, formatting, and physical damage, recommends recovery software, and emphasizes immediate write-stopping and backups.
HDDSSDTRIM
0 likes · 8 min read

Learn how to quickly locate oversized files and directories on a Linux server, verify safety before removal, use proper commands for secure deletion, and implement automation to prevent future disk‑space emergencies.
Linuxdisk spacefile deletion
0 likes · 7 min read

Learn how to use PHP’s unlink() function to delete files and empty directories, understand its syntax, handle return values, see practical code examples for file and directory removal, and discover important considerations such as handling non‑empty directories and error checking.
PHPUNLINKdirectory deletion
0 likes · 4 min read

This tutorial demonstrates how to verify a running Nginx process, deliberately delete its access log, and then use the lsof command together with the /proc filesystem to locate the deleted file descriptor and restore the log data on a Linux system.
Linuxfile deletionlog recovery
0 likes · 5 min read

The article explains why removing the massive node_modules folder can take a long time, then shows how to instantly delete it using the rimraf tool, compares rimraf with other deletion commands, and discusses its advantages for Node.js‑based frontend projects.
Node.jsfile deletionfrontend
0 likes · 6 min read

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.
Operationsdisk spacefile deletion
0 likes · 7 min read

This tutorial explains the PHP unlink() function, covering its syntax, parameters, return values, and practical examples for deleting both files and empty directories, while also noting its limitations and the need for rmdir() when handling non‑empty directories.
PHPUNLINKdirectory deletion
0 likes · 5 min read

This article walks through practical Python scripts for automating office tasks, showing how to batch‑rename files based on folder names and safely delete unwanted files, complete with code examples, execution tips, and best practices for sharing concise snippets in community groups.
batch renamingfile automationfile deletion
0 likes · 5 min read

This article investigates Linux's handling of files that are in use—whether opened for reading, running as executables, or loaded as shared libraries—by experimenting with deletion, replacement, and modification, revealing how the kernel preserves file contents via inode references until all processes release them.
InodeLinuxShared Library
0 likes · 16 min read

This article explains how the Linux unlink command deletes files and links, details its usage syntax, highlights its limitations—such as inability to remove multiple items or directories—and compares it with the more versatile rm command, helping you choose the right tool for safe file removal.
LinuxUNLINKfile deletion
0 likes · 5 min read

This article explains the Linux unlink command, how it deletes files and links, its syntax, limitations compared with rm, and scenarios where using unlink is preferable, providing clear examples and safety considerations for system administrators.
LinuxUNLINKfile deletion
0 likes · 5 min read

This article demonstrates how to use Python’s built‑in functions and os.walk to automatically locate and delete specific subsystem files and folders, addresses Windows’ 256‑character path limit by prefixing paths with "\\?\", and provides complete code examples for safe bulk cleanup.
Pythonfile deletionlong path
0 likes · 10 min read

This article demystifies the infamous sudo rm -rf command, explaining how rm works, the role of sudo, the effects of recursive and force options, directory deletion nuances, safety mechanisms, and why misuse can erase an entire Linux system, illustrated with concrete examples and command screenshots.
Linuxcommand-linefile deletion
0 likes · 7 min read

This article demonstrates how to use Python's os and shutil modules to enumerate system drives, list directory trees, delete files and folders, copy a script to the startup folder, and finally trigger a forced shutdown, illustrating a simple educational hacking tool.
Malware demoOS automationPython
0 likes · 9 min read

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


ITPUBJun 23, 2020 · Operations
This guide explains why removing a file with rm doesn't always release space, demonstrates creating a large test file, shows how open file handles keep space occupied, and provides commands to identify and release such hidden usage.
Linuxdddf
0 likes · 6 min read


ITPUBApr 11, 2020 · Operations
This article benchmarks several Linux techniques—including rm, find, rsync, Python, and Perl—for deleting 500,000 small files, measuring execution times and revealing that rsync with the --delete option completes the task in under 20 seconds, far outpacing traditional commands.
Pythonfile deletionfind
0 likes · 4 min read

This article creates 500,000 small files on a Linux system and benchmarks various deletion techniques—including rm, find, rsync, Python, and Perl—showing their execution times and concluding which method offers the best performance and convenience.
file deletionfindperformance testing
0 likes · 4 min read

This article benchmarks several Linux methods for deleting half a million small files—including rm, find with -exec, find with -delete, rsync, Python, and Perl—showing their execution times and concluding that rsync with the --delete option is the quickest and most convenient solution.
PythonShell Commandsfile deletion
0 likes · 4 min read

Learn how to build a custom recycle bin on Linux using a Bash script that moves deleted files to a timestamped folder, includes user confirmation, sets proper permissions, schedules automatic cleanup with cron, and can even replace the rm command via an alias.
LinuxRecycle Binfile deletion
0 likes · 4 min read

This guide walks you through restoring a Linux system when essential files like /lib64/libc.so.6 are accidentally deleted, using the rescue mode to copy missing libraries back and reboot the system successfully.
Linuxfile deletionrescue-mode
0 likes · 4 min read

This guide walks through restoring a critical Linux library after accidental deletion by booting into rescue mode, mounting the system image, copying the missing file back, and rebooting to verify the system is functional again.
LinuxRoot Filesystemfile deletion
0 likes · 5 min read

This guide presents five effective Linux command-line techniques for removing every file in the current directory and another five methods for clearing all files within a specified directory, covering simple rm usage, find with -delete or -exec, xargs, and loop constructs.
Linuxautomationfile deletion
0 likes · 3 min read

This article compares several Linux techniques—including rm, find with -exec or -delete, rsync, Python, and Perl—for removing 500,000 files, showing execution times and highlighting the most efficient method for massive file deletion.
command-linefile deletionperformance
0 likes · 4 min read
