1
0
Fork 0
mirror of https://codeberg.org/Mo8it/How_To_Linux.git synced 2024-10-18 09:42:38 +00:00

Add note about deleting file

This commit is contained in:
Mo 2023-08-14 23:33:58 +02:00
parent 6ba629913b
commit 5e8f175bae

View file

@ -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: