I typed in dd
in bash and ran it without double checking. Will this do anything to my system?
I just executed dd by itself. Was trying to backup a Raspberry Pi device, which I managed to do using dd
. Just stupidly input and execute dd
by itself afterwards.
The
dd
command by default will copy stdin to stdout. You either have to end it with Ctrl+D or kill it with Ctrl+C.So, it would not have made any harm, unless you have redirected its input or output.
See http://manpages.ubuntu.com/manpages/latest/en/man1/dd.1.html for more information.
dd
stands for data dump. Called so, because it only dumps the data passed to it without any processing. Without anif
(input file) parameter (or being "piped"), it would wait for some input that is terminated at the end with EOT (end of transmission) which you would do with CTRL + D. You could also CTRL + C (abort the input) and no data will be written. That being said, if you don't give it any input (it would simply write nothing), or abort the command before you ended the input, there surely can't be any harm done.On another note, if you didn't supply an
of
(output file) parameter (or "pipe" it to some other command afterwards), it will only print the input data.So, it is safe to say that it didn't change anything on your system.
You could also read the manual with
man dd
, as well.