<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Apple Views &#187; user commands</title> <atom:link href="http://applevie.ws/tag/user-commands/feed/" rel="self" type="application/rss+xml" /><link>http://applevie.ws</link> <description>Seeing Apple Differently.</description> <lastBuildDate>Fri, 05 Mar 2010 00:29:31 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>A Small List of Common GeekTool User Commands</title><link>http://applevie.ws/2009/09/a-small-list-of-common-geektool-user-commands/</link> <comments>http://applevie.ws/2009/09/a-small-list-of-common-geektool-user-commands/#comments</comments> <pubDate>Tue, 29 Sep 2009 03:37:06 +0000</pubDate> <dc:creator>Tina Brunner</dc:creator> <category><![CDATA[Mac User Tools]]></category> <category><![CDATA[commands]]></category> <category><![CDATA[GeekTool]]></category> <category><![CDATA[user commands]]></category><guid isPermaLink="false">http://applevie.ws/?p=407</guid> <description><![CDATA[Last 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 [...]]]></description> <content:encoded><![CDATA[<p>L<a href="http://applevie.ws/wp-content/uploads/2009/09/desk-screenshot.png"><img class="size-thumbnail wp-image-442 alignleft" style="margin: 5px;" title="desk screenshot" src="http://applevie.ws/wp-content/uploads/2009/09/desk-screenshot-150x150.png" alt="desk screenshot" width="150" height="150" /></a>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&#8217;s get to the commands….</p><table style="width: 553px; height: 1043px;" border="1" frame="border" align="center"><tbody><tr><td><strong>Month:</strong><br /> <code>date +%B</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Month.png"><img class="aligncenter size-full wp-image-437" title="Month" src="http://applevie.ws/wp-content/uploads/2009/09/Month.png" alt="Month" width="104" height="59" /></a></td></tr><tr><td><strong>Day of Month:</strong><br /> <code>date +%d</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Day-of-Month.png"><img class="aligncenter size-full wp-image-438" title="Day of Month" src="http://applevie.ws/wp-content/uploads/2009/09/Day-of-Month.png" alt="Day of Month" width="111" height="63" /></a></td></tr><tr><td><strong>Full Date:</strong><br /> <code>date "+%A, %B %d"</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Full-Date.png"><img class="aligncenter size-full wp-image-421" title="Full Date" src="http://applevie.ws/wp-content/uploads/2009/09/Full-Date.png" alt="Full Date" width="147" height="60" /></a></td></tr><tr><td><strong>Day of Week:</strong><br /> <code>date +%A</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Day-of-Week.png"><img class="aligncenter size-full wp-image-439" title="Day of Week" src="http://applevie.ws/wp-content/uploads/2009/09/Day-of-Week.png" alt="Day of Week" width="105" height="57" /></a></td></tr><tr><td><strong>Time:</strong><br /> <code>date +"%l:%M"</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Time.png"><img class="aligncenter size-full wp-image-415" title="Time" src="http://applevie.ws/wp-content/uploads/2009/09/Time.png" alt="Time" width="104" height="59" /></a></td></tr><tr><td><strong>AM/PM:</strong><br /> <code>date +"%p"</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/AMPM.png"><img class="aligncenter size-full wp-image-416" title="AM:PM" src="http://applevie.ws/wp-content/uploads/2009/09/AMPM.png" alt="AM:PM" width="102" height="57" /></a><a href="http://applevie.ws/wp-content/uploads/2009/09/External-IP.png"></a></td></tr><tr><td><strong>Current Calendar Month</strong><br /> This is just a simple, small calendar:<br /> <code>cal</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Small-Calendar.png"><img class="aligncenter size-full wp-image-413" title="Small Calendar" src="http://applevie.ws/wp-content/uploads/2009/09/Small-Calendar.png" alt="Small Calendar" width="144" height="120" /></a></td></tr><tr><td><strong>Simple Horizontal Calendar:</strong><br /> <code>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)\|/"</code></p><p style="text-align: center;"><a href="http://applevie.ws/wp-content/uploads/2009/09/Horizontal-Calendar.png"><img class="aligncenter size-full wp-image-422" title="Horizontal Calendar" src="http://applevie.ws/wp-content/uploads/2009/09/Horizontal-Calendar.png" alt="Horizontal Calendar" width="494" height="51" /></a></p></td></tr><tr><td><strong>Weather Conditions:</strong><br /> <code>lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=51501|awk '/Cond/ &amp;&amp; !/Fore/ {for (i=2; i&lt;=10; i++) printf $i " " }'</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Weather-Conditions.png"><img class="aligncenter size-full wp-image-431" title="Weather Conditions" src="http://applevie.ws/wp-content/uploads/2009/09/Weather-Conditions.png" alt="Weather Conditions" width="109" height="59" /></a></td></tr><tr><td><strong>Historical Events:</strong><br /> <code>curl http://www.infoplease.com/rss/dayinhistory.rss | grep CDATA | sed -e 's/\(.*\[\)//' -e 's/\].*//'</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Historical-Events.png"><img class="aligncenter size-full wp-image-432" title="Historical Events" src="http://applevie.ws/wp-content/uploads/2009/09/Historical-Events.png" alt="Historical Events" width="512" height="68" /></a></td></tr><tr><td><strong>Quote of the Day:</strong><br /> <code>curl http://encarta.msn.com/encnet/feeds/rssfeed.aspx?type=quote | grep description | sed -e 's/\(.*&lt;description&gt;\)//' -e 's/&lt;\/description&gt;.*//'</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Quote-of-the-Day.png"><img class="aligncenter size-full wp-image-433" title="Quote of the Day" src="http://applevie.ws/wp-content/uploads/2009/09/Quote-of-the-Day.png" alt="Quote of the Day" width="427" height="59" /></a></td></tr><tr><td><strong>Current Homeland Security Level (which will most likely show &#8216;Elevated&#8217;:</strong><br /> <code>curl -s http://www.dhs.gov/dhspublic/getAdvisoryCondition | grep CONDITION</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/Threat-Level.png"><img class="aligncenter size-full wp-image-414" title="Threat Level" src="http://applevie.ws/wp-content/uploads/2009/09/Threat-Level.png" alt="Threat Level" width="286" height="62" /></a></td></tr><tr><td><strong>RAM:</strong><br /> <code>top -l 1 | awk '/PhysMem/ {print "" $8 " "}' ;</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/RAM.png"><img class="aligncenter size-full wp-image-434" title="RAM" src="http://applevie.ws/wp-content/uploads/2009/09/RAM.png" alt="RAM" width="119" height="56" /></a></td></tr><tr><td><strong>CPU:</strong><br /> <code>top -l 2 | awk '/CPU usage/ &amp;&amp; NR &gt; 5 {print $12, $13}'</code></td></tr><tr><td><strong>IP Address</strong><br /> If you simply want to know your IP Address, this sort of command can be very helpful.<br /> <code>echo External IP: `curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z&lt;&gt;/ :]//g'`</code><br /> <a href="http://applevie.ws/wp-content/uploads/2009/09/External-IP.png"><img class="aligncenter size-full wp-image-420" title="External IP" src="http://applevie.ws/wp-content/uploads/2009/09/External-IP.png" alt="External IP" width="302" height="61" /></a></td></tr></tbody></table> ]]></content:encoded> <wfw:commentRss>http://applevie.ws/2009/09/a-small-list-of-common-geektool-user-commands/feed/</wfw:commentRss> <slash:comments>18</slash:comments> <enclosure url='http://applevie.ws/wp-content/uploads/2009/09/Internal-IP.png' length ='12105'  type='image/jpg' /> </item> </channel> </rss>