Add an rm confirmation guard article and a ufw guide
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user