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

Or if you forget that, you send the dd process a USR1 signal and it will print the status.

Though if you’re simply initializing from /dev/zero you’re probably better off with truncate to create a sparse file: https://man7.org/linux/man-pages/man1/truncate.1.html

Can’t beat a program that doesn’t even write the bytes.



Or `fallocate` if you care about the space actually being allocated on disk (rather than the file being sparse).




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

Search: