Add an rm confirmation guard article and a ufw guide

This commit is contained in:
Djeex
2026-09-05 12:42:58 +02:00
parent 142788d740
commit 34e4beb0d7
5 changed files with 155 additions and 32 deletions
+2 -2
View File
@@ -153,8 +153,8 @@ Three silent commands, and `ls` showing the result: the copy sits next to the or
Deletes. There is no recycle bin, no undo, no confirmation dialog. `-r` deletes a folder and its contents, `-f` forces without asking.
::warning
`rm -rf` is the command that wipes homelabs. It doesn't check, doesn't warn, and doesn't stop. Read the path twice before pressing :kbd{value="Enter"}, especially when the line starts with `sudo` and contains a `/` or a `*`.
::warning{to="/nonsense/bash/rm-confirmation"}
`rm -rf` is the command that wipes homelabs. It doesn't check, doesn't warn, and doesn't stop. Read the path twice before pressing :kbd{value="Enter"}, especially when the line starts with `sudo` and contains a `/` or a `*`. You can also prevent this by wrapping `sudo` in a small Bash function that asks **"are you sure?"** before it lets an `rm` through, covered in **rm confirmation guard**.
::
### cat and nano, read and edit