<?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>unix &#8211; Accidents Happen</title>
	<atom:link href="https://ah.thameera.com/tag/unix/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>Elevating privileges temporarily with setuid permission (Unix)</title>
		<link>https://ah.thameera.com/elevating-privileges-temporarily-with-setuid-permission-unix/</link>
					<comments>https://ah.thameera.com/elevating-privileges-temporarily-with-setuid-permission-unix/#comments</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Thu, 06 Sep 2012 05:12:08 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://noisythameera.wordpress.com/?p=52</guid>

					<description><![CDATA[You may have noticed that apart from the read (r), write (w) and executable (x) permissions in Unix, there&#8217;s an &#8216;s&#8217; permission as well. This is called the setuid permission. If you have access to an setuid-enabled file, then you can execute that file with admin privileges even though you&#8217;re an unprivileged user. So, s means that the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>You may have noticed that apart from the read (r), write (w) and executable (x) permissions in Unix, there&#8217;s an &#8216;s&#8217; permission as well. This is called the <em>setuid </em>permission. If you have access to an setuid-enabled file, then you can execute that file with admin privileges even though you&#8217;re an unprivileged user. So, <em>s</em> means that the file is both executable and has root privileges.</p>
<p><img decoding="async" class="alignnone size-full wp-image-58" title="setuid" src="http://ah.thameera.com/wp-content/uploads/2012/09/setuid2.jpg" alt="Unix setuid permission" width="436" height="165" /></p>
<p>It&#8217;s possible to add enable setuid permission just as you do with any other permission.</p>
<blockquote><p>chmod u+s filename</p></blockquote>
<p>Be wary though, mistakenly assigned setuid can cause havoc if some stupid user takes advantage of the root privileges.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/elevating-privileges-temporarily-with-setuid-permission-unix/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">52</post-id>	</item>
	</channel>
</rss>
