Run Linux, Run!


A nice little script cropped up in the Cafe the other day. I’d seen it there before, but couldn’t find it when I wanted it. But here it is again, how far your computer could run if it had legs ๐Ÿ™‚

 echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k -x nfs -x smbfs | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/\(.$\)/.\1 miles/' 

What does it do? Well, it counts up your uptime, CPU speed, free RAM and diskspace, and throws a unit on it ๐Ÿ™‚

What does System64 get? 160.3 miles, not bad ๐Ÿ™‚

Throw up your scores ๐Ÿ™‚


3 Responses to “Run Linux, Run!”

  1. Dude, wordpress f*cks up your ‘ ” ` ‘s. Look here for the good command:

    my score: 312.5 miles

  2. 3 Tim

    I’ve got 190.3 miles.
    Just turned on this morning. ๐Ÿ˜‰

%d bloggers like this: