this post was submitted on 23 Jun 2025
48 points (94.4% liked)
Linux
8577 readers
397 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have used dd a few times without destroying my disk, here is my simple recommendation to stay safe:
DON'T TYPE THE COMMAND DIRECTLY INTO THE TERMINAL!
What I mean is that you should open a text editor, type the dd command you want to run in the editor, let it sit for 5 min, go back to the text editor, find the OF path, doublecheck and verify that it is safe.
Correct misstakes, wait another 5 min and do the check again.
Once you are confident that the command is accurate, copy paste it into a terminal and run it.
when I need to type a dangerous command, i prepend it with #, so it's just a comment.
Only when I'm really sure do i go back to the start of the line and remove the #
That is a very good practice, it is better than my suggestion as it eliminates potential error when copy pasting