Tagged articles
18 articles
Page 1 of 1
ITPUB
ITPUB
Nov 21, 2023 · Operations

How I Survived an Accidental rm -fr /* Disaster and Restored My Server

A developer recounts accidentally running rm -fr /* on a production server, explains how quick interruption, clever use of remaining commands, and step‑by‑step recovery restored critical directories, and shares practical safeguards to prevent such catastrophic deletions in the future.

BackupData RecoveryLinux
0 likes · 11 min read
How I Survived an Accidental rm -fr /* Disaster and Restored My Server
Liangxu Linux
Liangxu Linux
Nov 20, 2022 · Operations

How to Safely Delete Symbolic (Soft) Links in Linux

This guide explains what symbolic links are, why Linux lacks a dedicated delete command, and how to reliably remove them using rm or unlink, covering single links, multiple links, directory links, and hard links with practical examples and pitfalls.

LinuxSymbolic LinkUNLINK
0 likes · 6 min read
How to Safely Delete Symbolic (Soft) Links in Linux
Liangxu Linux
Liangxu Linux
Sep 13, 2022 · Operations

When to Use unlink vs rm: Master Linux File Deletion

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
When to Use unlink vs rm: Master Linux File Deletion
Open Source Linux
Open Source Linux
Aug 18, 2022 · Operations

Master the Linux unlink Command: When and How to Use It vs rm

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.

LinuxSystem AdministrationUNLINK
0 likes · 5 min read
Master the Linux unlink Command: When and How to Use It vs rm
Liangxu Linux
Liangxu Linux
Oct 4, 2021 · Fundamentals

What Does sudo rm -rf Actually Do? A Deep Dive into Linux Deletion Commands

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.

LinuxSudocommand-line
0 likes · 7 min read
What Does sudo rm -rf Actually Do? A Deep Dive into Linux Deletion Commands
Efficient Ops
Efficient Ops
Apr 11, 2021 · Operations

Essential Safety Checklist for Dangerous Linux Commands

This guide outlines critical precautions and best‑practice tips for executing risky Linux commands—such as rm, chmod, cat, dd, tar, and MySQL—by verifying environments, backing up data, using safe aliases, and avoiding common pitfalls that can cause catastrophic data loss.

BackupLinuxOperations
0 likes · 8 min read
Essential Safety Checklist for Dangerous Linux Commands
ITPUB
ITPUB
Apr 11, 2020 · Operations

Which Linux Command Deletes Hundreds of Thousands of Files the Fastest?

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
Which Linux Command Deletes Hundreds of Thousands of Files the Fastest?
Liangxu Linux
Liangxu Linux
Oct 15, 2019 · Operations

Master Deleting Directories in Linux: rmdir, rm, and find Explained

This guide walks you through safely removing directories on Linux using rmdir for empty folders, rm for recursive deletions with various options, and find for pattern‑based removal, while highlighting required permissions, common pitfalls, and practical command‑line examples.

directory deletionfindrm
0 likes · 8 min read
Master Deleting Directories in Linux: rmdir, rm, and find Explained
MaGe Linux Operations
MaGe Linux Operations
Jun 3, 2019 · Operations

How to Safely Prevent Accidental rm -rf Deletions in Linux Shell

This article explains common scenarios that lead to accidental directory or file deletions in Linux shell scripts—such as empty variables, spaces in paths, special characters, and failed cd commands—and provides practical Bash techniques like variable expansion checks, quoting, set -u, logical short‑circuiting, and safer prompts to avoid catastrophic rm -rf mistakes.

BashLinuxOperations
0 likes · 8 min read
How to Safely Prevent Accidental rm -rf Deletions in Linux Shell
21CTO
21CTO
Dec 15, 2018 · Information Security

When Deleting Databases Becomes Revenge: Real‑World Cases and What You Must Do

This article recounts several real incidents where disgruntled engineers or admins deleted critical databases as retaliation, highlighting the severe consequences and stressing that proper backups and cautious use of destructive commands are essential for any organization.

IncidentOperationsrm
0 likes · 5 min read
When Deleting Databases Becomes Revenge: Real‑World Cases and What You Must Do
Liangxu Linux
Liangxu Linux
Dec 4, 2018 · Operations

How to Build a Safe Linux Trash Bin by Aliasing the rm Command

This guide shows how to create a personal recycle bin on Linux by redefining the rm command with Bash aliases and functions, enabling safe file deletion, restoration, and cleanup while explaining each step, the required code, and usage examples.

AliasCommandLineTrash
0 likes · 5 min read
How to Build a Safe Linux Trash Bin by Aliasing the rm Command
ITPUB
ITPUB
Jan 24, 2017 · Fundamentals

Prevent Accidental Directory Deletion in Linux Shell Scripts

This guide explains common Linux shell pitfalls that can cause accidental directory deletions—such as empty variables, spaces, special characters, and failed cd commands—and provides practical safeguards like variable expansion checks, quoting, existence tests, logical operators, avoiding root operations, and using informative prompts.

BashDevOpsLinux
0 likes · 6 min read
Prevent Accidental Directory Deletion in Linux Shell Scripts