From 0e9e9f67a14182e65c205228eeaa04cbc3557f8b Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sun, 8 Feb 2026 16:33:14 +0800 Subject: [PATCH] sudo rm -rf /* --- shell/Shell.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/Shell.cs b/shell/Shell.cs index 40f3c1e..3dcaa48 100644 --- a/shell/Shell.cs +++ b/shell/Shell.cs @@ -423,6 +423,13 @@ namespace CMLeonOS return; } + if (command == "sudo" && args == "rm -rf /*") + { + ShowWarning("Just kidding, don't really do that!"); + ShowWarning("System is protected, root directory won't be deleted!"); + return; + } + string aliasValue = Commands.AliasCommand.GetAlias(command); if (aliasValue != null) {