L
ast week, I wrote an article about GeekTool and its uses. I decided that it would be nice to create a list of some of the most common user commands that I’ve found online so that others may benefit the great features of GeekTool. I am using GeekTool 3 for the commands. To the right is a preview of the GeekTool pane area (just click it to enlarge). So let’s get to the commands….
Month:date +%B![]() |
Day of Month:date +%d![]() |
Full Date:date "+%A, %B %d"![]() |
Day of Week:date +%A![]() |
Time:date +"%l:%M"![]() |
AM/PM:date +"%p"![]() |
| Current Calendar Month This is just a simple, small calendar: cal![]() |
Simple Horizontal Calendar:cal | sed -e '1d' -e '2p;2p;2p;2p' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | sed "s/^/ /;s/$/ /;s/ $(date +%e) /\|$(date +%e)\|/" |
Weather Conditions:lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=51501|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'![]() |
Historical Events:curl http://www.infoplease.com/rss/dayinhistory.rss | grep CDATA | sed -e 's/\(.*\[\)//' -e 's/\].*//'![]() |
| UPDATE: The original quote of the day has been removed due to Encarta no longer having a valid RSS feed. Here is a replacement. Found this geeklet here: http://www.korvus.com/blog/geek/dailyzen-in-geektool/ Quote of the Day: curl -s http://www.dailyzen.com/ | sed -n "/<\!--Add Quote for correct day-->/,/<\/TD>/p"|sed -e "s/<[^>]*>//g" |strings|fold -sw60![]() |
Current Homeland Security Level (which will most likely show ‘Elevated’:curl -s http://www.dhs.gov/dhspublic/getAdvisoryCondition | grep CONDITION![]() |
RAM:top -l 1 | awk '/PhysMem/ {print "" $8 " "}' ;![]() |
CPU:top -l 2 | awk '/CPU usage/ && NR > 5 {print $12, $13}' |
| IP Address If you simply want to know your IP Address, this sort of command can be very helpful. echo External IP: `curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'`![]() |


































18 Comments on "A Small List of Common GeekTool User Commands"
suggested improvement for homeland security status:
curl -s http://www.dhs.gov/dhspublic/getAdvisoryCondition | grep CONDITION | cut -d = -f 2 | cut -d ‘ ‘ -f 1 | sed ‘s/.\(.*\)/\1/’ | sed ‘s/\(.*\)./\1/’
Обилие интересных статей на вашем сайте меня поражает! Автору – удачи и новых интересных постов!
Author, Большое спасибо. Я высоко ценю вашу просмотре веб-сайта и надеемся на более комментариев!
(Thank you very much. I appreciate your viewing the website and look forward to more comments!)
Hello there, Did you have a happy Haloween?
DenzelWPn:
Yes, we had a wonderful Halloween. Hopefully you did too. Thanks for asking!
Trackbacks for this post