<?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>Knowledge Sharing &#187; Linux</title>
	<atom:link href="http://blog.danigunawan.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.danigunawan.com</link>
	<description>"Say it... although a word..."</description>
	<lastBuildDate>Mon, 04 Jan 2010 10:17:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Create Environment Variables in Linux</title>
		<link>http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-linux/</link>
		<comments>http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-linux/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 05:39:00 +0000</pubDate>
		<dc:creator>Dagu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Environment Variables]]></category>

		<guid isPermaLink="false">http://blog.danigunawan.com/?p=515</guid>
		<description><![CDATA[This tutorial is still about creating environment variables, just like my last tutorial. But now I create environment variable in Linux, not Windows.
To create or edit environment variable in linux is very easy. You may create or edit environment variable from terminal.
The syntax is: export VAR_NAME=var_content
For example:
export JAVA_HOME=/usr/lib/jvm/sun-java6
Yes, very easy right? If you want to [...]


Related posts:<ol><li><a href='http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-windows/' rel='bookmark' title='Permanent Link: How to Create Environment Variables in Windows'>How to Create Environment Variables in Windows</a></li>
<li><a href='http://blog.danigunawan.com/operating-systems/how-to-install-java-in-linux-ubuntu/' rel='bookmark' title='Permanent Link: How To Install Java in Linux Ubuntu'>How To Install Java in Linux Ubuntu</a></li>
<li><a href='http://blog.danigunawan.com/linux/checking-disk-capacity-in-linux/' rel='bookmark' title='Permanent Link: Checking Disk Capacity in Linux'>Checking Disk Capacity in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This tutorial is still about creating environment variables, just like <a title="environment variables" href="http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-windows/" target="_blank">my last tutorial</a>. But now I create environment variable in Linux, not Windows.</p>
<p>To create or edit environment variable in linux is very easy. You may create or edit environment variable from terminal.</p>
<p>The syntax is: <strong>export VAR_NAME=var_content</strong></p>
<p>For example:</p>
<pre>export JAVA_HOME=/usr/lib/jvm/sun-java6</pre>
<p>Yes, very easy right? If you want to append content to an existing variable, you can&#8217;t use command above. Command above will create a new variable, not append it. To append content, you may use command below.</p>
<p>The syntax is: <strong>export VAR_NAME=$VAR_NAME:var_content</strong></p>
<p>For example:</p>
<pre>export PATH=$PATH:/usr/lib/jvm/sun-java6/bin</pre>
<p>or, if you have created <strong>JAVA_HOME</strong> variable, you may use command below:</p>
<pre>export PATH=$PATH:$JAVA_HOME/bin</pre>
<p>Easy right?</p>
<p><strong>Note:</strong><br />
To define a variable, you <span style="text-decoration: underline;">don&#8217;t need &#8216;<strong>$</strong>&#8216; character</span>. But when you use it (for example when you append variable content), <span style="text-decoration: underline;">don&#8217;t forget &#8216;<strong>$</strong>&#8216; character</span>.</p>


<p>Related posts:<ol><li><a href='http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-windows/' rel='bookmark' title='Permanent Link: How to Create Environment Variables in Windows'>How to Create Environment Variables in Windows</a></li>
<li><a href='http://blog.danigunawan.com/operating-systems/how-to-install-java-in-linux-ubuntu/' rel='bookmark' title='Permanent Link: How To Install Java in Linux Ubuntu'>How To Install Java in Linux Ubuntu</a></li>
<li><a href='http://blog.danigunawan.com/linux/checking-disk-capacity-in-linux/' rel='bookmark' title='Permanent Link: Checking Disk Capacity in Linux'>Checking Disk Capacity in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking Disk Capacity in Linux</title>
		<link>http://blog.danigunawan.com/linux/checking-disk-capacity-in-linux/</link>
		<comments>http://blog.danigunawan.com/linux/checking-disk-capacity-in-linux/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 05:14:00 +0000</pubDate>
		<dc:creator>Dagu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.danigunawan.com/2007/11/13/ngecek-kapasitas-harddisk-di-linux/</guid>
		<description><![CDATA[In my work, I should be familiar with linux server. Because it uses CLI (Command Line Interface), then it&#8217;s a bit difficult to use. One of my problems is how to check disk capacity. Previously, my friend had told me, but I forget it :(. In order not to forget it, I will share it [...]


Related posts:<ol><li><a href='http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-linux/' rel='bookmark' title='Permanent Link: How to Create Environment Variables in Linux'>How to Create Environment Variables in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In my work, I should be familiar with linux server. Because it uses CLI (Command Line Interface), then it&#8217;s a bit difficult to use. One of my problems is how to check disk capacity. Previously, my friend had told me, but I forget it :(. In order not to forget it, I will share it in my blog. So, if I forget it, I only need to open my blog.. :)</p>
<p>Command to check disk capacity is <em>df</em>. Short description:  <span style="font-style: italic;">df &#8211; report filesystem disk space usage</span>. Use man df to get more information.</p>
<p><span id="more-88"></span></p>
<p><strong>Usage example:</strong></p>
<pre><span style="font-family: courier new;">$ df</span>
<span style="font-family: courier new;">Filesystem           1K-blocks      Used Available Use% Mounted on</span>
<span style="font-family: courier new;">/dev/sda1             14877092   9090552   5018636  65% /</span>
<span style="font-family: courier new;">/dev/shm               1037556         0   1037556   0% /dev/shm</span>
<span style="font-family: courier new;">/dev/sdb1             68890968  24462748  40872236  38% /home</span>
<span style="font-family: courier new;">/dev/sda5             14877060   6418492   7690664  46% /var</span></pre>
<p>Oops, it&#8217;s not clear enough. To make it clear, add <em>-h</em> parameter.</p>
<pre><span style="font-family: courier new;">$ df -h</span>
<span style="font-family: courier new;">Filesystem            Size  Used Avail Use% Mounted on</span>
<span style="font-family: courier new;">/dev/sda1              15G  8.7G  4.8G  65% /</span>
<span style="font-family: courier new;">/dev/shm             1014M     0 1014M   0% /dev/shm</span>
<span style="font-family: courier new;">/dev/sdb1              66G   24G   39G  38% /home</span>
<span style="font-family: courier new;">/dev/sda5              15G  6.2G  7.4G  46% /var</span></pre>
<p>Hmm&#8230; it&#8217;s better, isn&#8217;t it?</p>


<p>Related posts:<ol><li><a href='http://blog.danigunawan.com/operating-systems/how-to-create-environment-variables-in-linux/' rel='bookmark' title='Permanent Link: How to Create Environment Variables in Linux'>How to Create Environment Variables in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.danigunawan.com/linux/checking-disk-capacity-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
