DEV Community

Discussion on: 9 Evil Bash Commands Explained

Collapse
 
keltroth profile image
Django Janny
alias dd='echo "no dd command available"'

This is not really safe... you still can call :

\dd if=/dev/zero of=/dev/sda
Collapse
 
devmount profile image
Andreas

Thank you for pointing out, I agree that dd can still be executed this way. Do you have another suggestion for a complete deactivation of this command?

Collapse
 
keltroth profile image
Django Janny

Good question, my point was about learning dangerous command to use them with caution more than trying to avoid them with aliases and stuff like that... dd is a useful command if you know how to use it :)

Thread Thread
 
devmount profile image
Andreas

That's exactly what I was trying to show in this article. Most of the commands are very useful, it's just very easy to damage your system by mistake, so I tried to give some ideas of how to protect yourself from making these mistakes.