Bash: Simple HDD/SSD speed test using dd
I wrote a (very) short script to test hdd or ssd speed using dd. You can find the code here:
hdd-speed-test-1gb.sh
and as text:
hdd-speed-test-1gb.sh.txt
The script uses dd and /dev/zero for writing a 1GB sized tempfile. Then the tempfile is written by dd to /dev/null. dd produces some output where the transfer speed is mentioned. Afterwards the tempfile is removed.
It is really just a tiny script, so i do not have to remember the dd syntax every few months.
No related posts.