Useful one liners…

Here are some useful one liners which I can never remember:

Reset Server Time

sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

Generate Massive file

dd if=/dev/zero of=one_massive_file.txt count=950 bs=1048576