Last Updated: December 26, 2018
· maxime

One-liner to test your drive speed

Always useful, time</code> in Unix along with dd</code> to randomly write on your HDD or SSD.

time dd if=/dev/zero bs=1024k of=tstfile count=1024

And it works to test read speed too:

time dd if=tstfile bs=1024k of=/dev/null count=1024

Via <a href="">Cult of Mac</a>