Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use dd for that.

    dd if=./file.txt
Can you also format your drive with ffmpeg? I'm looking for a more versatile dd replacement..


It can't create partition tables or filesystems, so no, but

  ffmpeg -f data -i /dev/zero -map 0:0 -c copy -f data - > /dev/sda
is roughly equivalent to to

  dd status=progress if=/dev/zero of=/dev/sda


you might need a -disposition default type option, otherwise, it introduce some abnormal behavior




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: