Test your hard/ssd speed in Linux

dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync && rm -fv test