To display my uptime (with the date/time cut out because I display that using straight up "date") I have:
CODE
uptime | awk '{sub($1" ", ""); print}'
I also use a top function to display to processes eating up the most CPU:
CODE
top -o cpu -l 2 -n 11 -e -s 10 | tail -n 12
This displays my internal and external IP addresses and the status of my Airport and ethernet connections:
CODE
echo Internal IP: `ifconfig | grep "inet [0-9]"|grep -v 127.0.0.1 | awk '{ print $2 }'`;echo External IP: `curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'`;echo "";echo "Ethernet (en0):";ifconfig en0|grep "active";echo "Airport (en1):";ifconfig en1|grep "active"
Also, I had an applescript to display what was playing in iTunes, but for some reason it would screw with Exposé, so I trashed it. I'll dig that up and post that here later.
I was also wondering, actually, if anyone had a terminal command to display the CPU usage, network throughput, used/available RAM, CPU/GPU temperature, laptop battery life, et cetera... If you know any of those, post that here, I'd like to see it.
Use, enjoy and share, folks. Later.