{"id":261,"date":"2009-06-01T02:08:37","date_gmt":"2009-06-01T07:08:37","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=261"},"modified":"2009-06-12T13:56:23","modified_gmt":"2009-06-12T18:56:23","slug":"cool-linux-utility-alert-agedu","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=261","title":{"rendered":"Cool Linux utility alert: agedu"},"content":{"rendered":"<p>I like the <a title=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/agedu\/\" href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/agedu\/\" target=\"_blank\"><code>agedu<\/code> utility<\/a>.\u00a0 I recently found it while searching the &#8216;net, and I want to thank all involved with it (see <a title=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/agedu\/\" href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/agedu\/\" target=\"_blank\">the page<\/a> for credits and info).<\/p>\n<p>This neat utility helps you get a general understanding of two main things: 1.) How much space you&#8217;ve consumed on the filesystem, and 2.) roughly how old it is&#8230; in a single, graphical (optionally) representation.\u00a0 Of course, at the time of this writing, it is listed as a BETA, so use at your own risk, etc., etc.\u00a0 But to save you the 5 minutes of reading the web page, the readme,\u00a0 and the man page, I&#8217;ve tossed together a quick installation\/configuration\/use cheat sheet&#8230;.<\/p>\n<p>First, make a directory, get the gzipped tar, and expand it:<\/p>\n<p><code>mkdir \/tmp\/agedu;cd \/tmp\/agedu<br \/>\nwget <a title=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/agedu\/agedu-r8442.tar.gz\" href=\"http:\/\/http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/agedu\/agedu-r8442.tar.gz\" target=\"_blank\">http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/agedu\/agedu-r8442.tar.gz<\/a><br \/>\ntar -zxvf agedu-r8442.tar.gz<\/code><\/p>\n<p>Then, you have to compile\/install it:<\/p>\n<p><code>cd agedu-r8442\/<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<\/code><br \/>\n(optionally) <code>make clean<\/code><\/p>\n<p>Now, you get to use it.\u00a0 Of course, you could now read the man page, and get all the details.\u00a0 But to cut to the chase, you need to build an index file, and then either view it as text (which is boring), or dump out to html (which is really the whole point here), and view with a browser.\u00a0 The author includes a method to spawn its own little web daemon, but I prefer just dumping an html file for my own use.\u00a0 Here&#8217;s an example, using my home directory (note that I build the index file in <code>\/tmp<\/code> just to stay clean):<\/p>\n<p><code>cd \/tmp<br \/>\nagedu -s \/home\/jpavlov\/<\/code><br \/>\n(the &#8220;<code>-s<\/code>&#8221; does a scan at the given point, and creates the index)<br \/>\n<code>agedu -H \/home\/jpavlov\/ -R &gt; report.html<\/code><br \/>\n(the &#8220;<code>-H<\/code>&#8221; generates the html output to stdout, hence the re-direct;\u00a0 the &#8220;<code>-R<\/code>&#8221; deletes the index file for cleanup, since we&#8217;re done with it)<\/p>\n<p>&#8230;Then open a browser, and put in the URL for the report file you created:<\/p>\n<p><code>file:\/\/\/tmp\/report.html<\/code><\/p>\n<p>And that&#8217;s it.\u00a0 You can enjoy the visual splendor, and feel the realization that you&#8217;re wasting all that space creep over you.\u00a0 Make sure to drop the author a line, and give him some feedback.\u00a0 I&#8217;m off to try this out on a few NCP volumes on some OES Linux servers to see how the users&#8217; home directories look&#8230;<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like the agedu utility.\u00a0 I recently found it while searching the &#8216;net, and I want to thank all involved with it (see the page for credits and info). This neat utility helps you get a general understanding of two&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=261\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[69,11,47],"tags":[],"class_list":["post-261","post","type-post","status-publish","format-standard","hentry","category-agedu","category-intermediate","category-linuxgeneral"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-4d","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=261"}],"version-history":[{"count":6,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/261\/revisions\/266"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}