how to get disk speed in linux code example
Example 1: linux command disk speed test
$ sudo dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync
Example 2: linux command disk speed test
tp@linux:~$ sudo dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync
[sudo] password for tp:
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 11.9635 s, 89.8 MB/s
tp@linux:~$