From 5e8f175bae0692f78e8f5b9387ffdc18b7f00f26 Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 14 Aug 2023 23:33:58 +0200 Subject: [PATCH] Add note about deleting file --- src/day_1/terminal_basics.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/day_1/terminal_basics.md b/src/day_1/terminal_basics.md index 51fba4e..05a79dd 100644 --- a/src/day_1/terminal_basics.md +++ b/src/day_1/terminal_basics.md @@ -164,7 +164,16 @@ friend1.txt friend2.txt The loud friend is removed! `rm` stand for _remove_. -> **Warning** ⚠️ : `rm` deletes a file directly! The file is **not** moved to a trash! It is gone! You can't restore it anymore! Think twice before using `rm`. +> **Warning** ⚠️ : `rm` deletes a file directly! +> The file is **not** moved to a trash! +> It is gone! +> You can't just restore it anymore! +> Think twice before using `rm`. + +> **Note**: Although `rm` deletes the file from the file system, there is still some chance that the file content still exists on the disk. +> One could try to recover it with some tools, but it is hard and nothing is guaranteed. +> Nevertheless, if you want to delete something senstive for sure, then you have to use a tool that overwrites the file content before deleting it. +> Physically destroying the whole disk is also an option 🔥😂 Does `rm` also work with directories? Let's test it: