How to test write speed of your hard drive of Linux

sync; dd if=/dev/zero of=speedtest bs=1M count=4096; sync; rm speedtest

Next - Previous