This command will write a file to disk, measure the speed and delete the created file
Code: Select all
$ dd if=/dev/zero of=/tmp/output.img bs=1M count=1024 conv=fdatasync; rm -rf /tmp/output.img
Code: Select all
hallvor@debian:~$ dd if=/dev/zero of=/tmp/output.img bs=1M count=1024 conv=fdatasync; rm -rf /tmp/output.img
1024+0 oppføringer inn
1024+0 oppføringer ut
1073741824 byte (1,1 GB, 1,0 GiB) kopiert, 44,4709 s, 24,1 MB/s
Code: Select all
# dd if=test of=/dev/null bs=1048576
Code: Select all
# dd if=test of=/dev/null bs=1048576
https://www.tecmint.com/5-linux-command-line-tricks/