Docu review done: Mon 06 May 2024 09:17:53 AM CEST
dd
Commands
Commands | Description |
---|---|
dd if=<source file name> of=<target file name> [Options] | copies block device from if-source to of-destinatnio |
dd if=<source file name> of=<target file name> status=progress [Options] | not to be used in scripts as it produces status output |
dd if=/dev/urandom of=<somfile> count=<howoften_bs> bs=1048576 | will generate a file with (<howoften_bx )MB as 1048576 bytes = 1Mb |
Get status if you need it and for got status=progress
Open another sessoin (ssh/term) and run the following command:
$ kill -USR1 $(pgrep ^dd)
It will send a signal to dd that it prints out the current status like:
3053+3 records in
3053+2 records out
12809067752 bytes (13 GB) copied, 1222.97 s, 10.5 MB/s