Skip to content

Instantly share code, notes, and snippets.

@spiderr
spiderr / ddspeed
Last active January 1, 2018 20:47 — forked from codingtony/speedtest.sh
Simple script to test hard disk speed with dd
#!/bin/bash
# by TB : 2012-10-12
if [ "$USER" != "root" ]
then
echo "You must be root to execute this script (in order to instruct the kernel to drop the cache)!"
exit 1
fi
if [ -z "$1" ]