disk speed test linux code example
Example 1: linux speed test
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
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:~$
Example 3: linux command disk speed test
$ sudo dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync