<?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>utils &#8211; Accidents Happen</title>
	<atom:link href="https://ah.thameera.com/tag/utils/feed/" rel="self" type="application/rss+xml" />
	<link>https://ah.thameera.com</link>
	<description>In the dark</description>
	<lastBuildDate>Mon, 04 Dec 2017 13:05:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">56521109</site>	<item>
		<title>Using ncdu to examine disk usage</title>
		<link>https://ah.thameera.com/using-ncdu-to-examine-disk-usage/</link>
					<comments>https://ah.thameera.com/using-ncdu-to-examine-disk-usage/#respond</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Mon, 04 Dec 2017 13:05:44 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[coreutils]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[ncdu]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[utils]]></category>
		<guid isPermaLink="false">http://ah.thameera.com/?p=654</guid>

					<description><![CDATA[du has been my go-to tool for checking disk usage and it&#8217;s wonderfully simple. But I&#8217;ve been using ncdu for a few weeks now. ncdu is short for NCurses Disk Usage. In addition to being able to visualize disk usage by directory, it lets you sort on different parameters, delete files, show hidden files, and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="https://en.wikipedia.org/wiki/Du_(Unix)"><code>du</code></a> has been my go-to tool for checking disk usage and it&#8217;s wonderfully simple. But I&#8217;ve been using <a href="https://dev.yorhel.nl/ncdu"><code>ncdu</code></a> for a few weeks now. </p>
<p><code>ncdu</code> is short for NCurses Disk Usage. In addition to being able to visualize disk usage by directory, it lets you sort on different parameters, delete files, show hidden files, and a few more stuff that you&#8217;ll miss if you go back to plain <code>du</code>. Most importantly it acts as a file manager, so you can simply enter the directories to see a more fine-grained breakdown of file sizes. As an added bonus it has Vim keybindings along with normal arrow key movements.</p>
<div id="attachment_657" style="width: 540px" class="wp-caption alignnone"><a href="http://ah.thameera.com/wp-content/uploads/2017/11/ncdu.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-657" src="http://ah.thameera.com/wp-content/uploads/2017/11/ncdu-1024x810.png" alt="ncdu - ncurses disk usage" width="530" height="419" class="size-large wp-image-657" /></a><p id="caption-attachment-657" class="wp-caption-text">Screenshot of ncdu + help popup</p></div>
<p>Installation:</p>
<blockquote><p><code>brew install ncdu   # macOS<br />
sudo apt-get install ncdu  # Ubuntu/debian</code></p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/using-ncdu-to-examine-disk-usage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">654</post-id>	</item>
		<item>
		<title>Installing rupa/z</title>
		<link>https://ah.thameera.com/installing-rupaz/</link>
					<comments>https://ah.thameera.com/installing-rupaz/#respond</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Sat, 26 Oct 2013 03:44:10 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[utils]]></category>
		<guid isPermaLink="false">http://ah.thameera.com/?p=489</guid>

					<description><![CDATA[z is a command-line tool that would make jumping around your favorite directories much, much faster. It sits in the background and monitors where you cd to often, like a creep. 😯 And whenever you need to change to that ~/pictures/lol/cats directory, all you have to type in is z cats and you&#8217;ll be there. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="https://github.com/rupa/z"><code>z</code></a> is a command-line tool that would make jumping around your favorite directories much, much faster. It sits in the background and monitors where you <code>cd</code> to often, like a creep.   <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f62f.png" alt="😯" class="wp-smiley" style="height: 1em; max-height: 1em;" />  And whenever you need to change to that <code>~/pictures/lol/cats</code> directory, all you have to type in is <code>z cats</code> and you&#8217;ll be there. How it achieves this feat is by overriding the default <code>cd</code>&#8216;s functionality with a custom shell function. Bad, bad z.  <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f608.png" alt="😈" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>
<p>Install <a href="https://github.com/rupa/z">rupa/z</a> somewhere in your <code>$PATH</code>, say <code>~/bin</code>.</p>
<blockquote><p><code>cd ~/bin<br />
curl -O https://raw.githubusercontent.com/rupa/z/master/z.sh<br />
chmod +x z.sh<br />
source z.sh</code></p></blockquote>
<p>You might get a &#8216;no such file or directory&#8217; error the first time, just ignore that. <code>z</code> works in both bash and zsh. You might need to add the <code>source ~/bin/z.sh</code> line in your <code>.bashrc</code> or <code>.zshrc</code> so it starts up with your shell session.</p>
<p><strong>Update:</strong></p>
<p>Optionally, you can install the z man page as well. Jump to a directory in your MANPATH (you can find these using the command <code>man -w</code>) and download the man file.</p>
<blockquote><p><code>cd /usr/local/man/man1<br />
sudo curl -O https://raw.githubusercontent.com/rupa/z/master/z.1</code></p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/installing-rupaz/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">489</post-id>	</item>
	</channel>
</rss>
