<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Ubuntued</title>
	
	<link>http://www.ubuntued.com</link>
	<description>Adopting Tux Full-Time!</description>
	<lastBuildDate>Sun, 29 Aug 2010 14:40:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ubuntued/yToT" /><feedburner:info uri="ubuntued/ytot" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>This is a test</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/2K2meeU6Sig/</link>
		<comments>http://www.ubuntued.com/this-is-a-test/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 14:40:41 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=156</guid>
		<description><![CDATA[Sorry for the trouble]]></description>
			<content:encoded><![CDATA[<p>Sorry for the trouble <img src='http://www.ubuntued.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/VhX-EwgEdJ08ugoNNbbmIDHX01s/0/da"><img src="http://feedads.g.doubleclick.net/~a/VhX-EwgEdJ08ugoNNbbmIDHX01s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VhX-EwgEdJ08ugoNNbbmIDHX01s/1/da"><img src="http://feedads.g.doubleclick.net/~a/VhX-EwgEdJ08ugoNNbbmIDHX01s/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/2K2meeU6Sig" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/this-is-a-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/this-is-a-test/</feedburner:origLink></item>
		<item>
		<title>.php with PHP5 in Apache</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/HX4yoYOpddM/</link>
		<comments>http://www.ubuntued.com/php-with-php5-in-apache/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 13:09:04 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=144</guid>
		<description><![CDATA[Usually, when an Apache web server supports PHP4 and PHP5, the default configuration is .php scripts are handled with PHP4, and .php5 scripts with PHP5 . You can however specify that .php scripts should be handled with PHP5 instead. To achieve that, you should modify the .htaccess file by adding the following: AddHandler x-httpd-php5 .php [...]]]></description>
			<content:encoded><![CDATA[<p>Usually, when an Apache web server supports PHP4 and PHP5, the default configuration is <code>.php</code> scripts are handled with PHP4, and <code>.php5</code> scripts with PHP5 . You can however specify that <code>.php</code> scripts should be handled with PHP5 instead.</p>
<p>To achieve that, you should modify the <code>.htaccess</code> file by adding the following:<br />
<code>AddHandler x-httpd-php5 .php<br />
AddHandler x-httpd-php .php4</code></p>
<p>The new handling will apply to all <code>.php</code> scripts in the current directory and it&#8217;s sub-directories. PHP4 will looks for the <code>.php4</code> extension in this case. Note that the second line is necessary, otherwise a handling conflict will occur.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/we7tKVPHLQJtd6NhWcg6sgUHfPw/0/da"><img src="http://feedads.g.doubleclick.net/~a/we7tKVPHLQJtd6NhWcg6sgUHfPw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/we7tKVPHLQJtd6NhWcg6sgUHfPw/1/da"><img src="http://feedads.g.doubleclick.net/~a/we7tKVPHLQJtd6NhWcg6sgUHfPw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/HX4yoYOpddM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/php-with-php5-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/php-with-php5-in-apache/</feedburner:origLink></item>
		<item>
		<title>Count number of lines of code</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/4t9x9nQAhTs/</link>
		<comments>http://www.ubuntued.com/count-number-of-lines-of-code/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 13:00:20 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=141</guid>
		<description><![CDATA[Here&#8217;s quicky. Let&#8217;s say you want to count the number of lines of code in all JAVA files, you would simply execute: wc -l `find -name "*.java"`]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s quicky. Let&#8217;s say you want to count the number of lines of code in all JAVA files, you would simply execute:<br />
<code>wc -l `find -name "*.java"`</code></p>

<p><a href="http://feedads.g.doubleclick.net/~a/pqo1f-ycldijwEDDjumnA5V-aN0/0/da"><img src="http://feedads.g.doubleclick.net/~a/pqo1f-ycldijwEDDjumnA5V-aN0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pqo1f-ycldijwEDDjumnA5V-aN0/1/da"><img src="http://feedads.g.doubleclick.net/~a/pqo1f-ycldijwEDDjumnA5V-aN0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/4t9x9nQAhTs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/count-number-of-lines-of-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/count-number-of-lines-of-code/</feedburner:origLink></item>
		<item>
		<title>SSH Socks Tunnel</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/R1WkasKnne8/</link>
		<comments>http://www.ubuntued.com/ssh-socks-tunnel/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 12:31:33 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=129</guid>
		<description><![CDATA[SSH can be used to tunnel a connection from one computer to another. That is when you access the internet from computer A, it will seem like you are accessing it from computer B. This is useful for bypassing the restriction on content imposed from computers in schools, coffee shops, or companies. You can also [...]]]></description>
			<content:encoded><![CDATA[<p>SSH can be used to tunnel a connection from one computer to another. That is when you access the internet from computer A, it will seem like you are accessing it from computer B. This is useful for bypassing the restriction on content imposed from computers in schools, coffee shops, or companies. You can also benefit from the services offered in one specific network.</p>
<p>From a unix environment, simply execute the following replacing <code>username</code> and <code>server</code> by the appropriate values. This will create a SOCKS proxy on port <code>3333</code> (you can of course use another port):<br />
<code>ssh -D 3333 -f -C -q -N  username@server</code></p>
<p>Now, you just need to modify your browser preferences to use that proxy and you&#8217;re done. In Firefox, head to preferences and find the connection settings. Use manual proxy configuration, and enter in the SOCKS proxy field <code>localhost</code> on port <code>3333</code>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/H1j_vvGGcGjyuogYVJTplXdh0Yk/0/da"><img src="http://feedads.g.doubleclick.net/~a/H1j_vvGGcGjyuogYVJTplXdh0Yk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/H1j_vvGGcGjyuogYVJTplXdh0Yk/1/da"><img src="http://feedads.g.doubleclick.net/~a/H1j_vvGGcGjyuogYVJTplXdh0Yk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/R1WkasKnne8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/ssh-socks-tunnel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/ssh-socks-tunnel/</feedburner:origLink></item>
		<item>
		<title>Setup SSH Server</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/eM8E5jVbqUI/</link>
		<comments>http://www.ubuntued.com/setup-ssh-server/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 12:21:51 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=122</guid>
		<description><![CDATA[Installing SSH server on your machine is quite straight forward. This will enable you to access your data from any SSH client. Simply install the required packages as follows: sudo apt-get install openssl ssh You can now access your computer from another machine using an SSH client. From another linux machine, you could access it [...]]]></description>
			<content:encoded><![CDATA[<p>Installing SSH server on your machine is quite straight forward. This will enable you to access your data from any SSH client.</p>
<p>Simply install the required packages as follows:<br />
<code>sudo apt-get install openssl ssh</code></p>
<p>You can now access your computer from another machine using an SSH client. From another linux machine, you could access it using the following format:<br />
<code>ssh username@machine</code></p>
<p><strong>SSH behind router</strong><br />
If you&#8217;re using a router, and would like to SSH your computer from an external network, you should configure your router to forward the SSH port (default: 22) to the computer in question. This procedure differs from a router to another; look for &#8216;Port Forwarding&#8217; in the configuration menu of your device.</p>
<p><strong>SSH without a password</strong><br />
This is extremely useful if you don&#8217;t want to type your password from the client every time you SSH, of if you are automating SSH login. The process is described on <a href="http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html ">SSH Without a Password</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/mn6VRL_3zhK_FtBJHUxpJqbKQxc/0/da"><img src="http://feedads.g.doubleclick.net/~a/mn6VRL_3zhK_FtBJHUxpJqbKQxc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mn6VRL_3zhK_FtBJHUxpJqbKQxc/1/da"><img src="http://feedads.g.doubleclick.net/~a/mn6VRL_3zhK_FtBJHUxpJqbKQxc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/eM8E5jVbqUI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/setup-ssh-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/setup-ssh-server/</feedburner:origLink></item>
		<item>
		<title>Screen resolution in rdesktop</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/3Puur-jgr4g/</link>
		<comments>http://www.ubuntued.com/screen-resolution-in-rdesktop/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 12:10:30 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[packages]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=117</guid>
		<description><![CDATA[You can remote desktop a Windows machine from Linux using the exquisite rdesktop command-line application; an example: rdesktop [machine] You can replace [machine] by the host name on the network or the IP address. Now, if you want to open the screen at a specific resolution, for example 1280&#215;1024 resolution, add the -g flag: rdesktop -g [...]]]></description>
			<content:encoded><![CDATA[<p>You can remote desktop a Windows machine from Linux using the exquisite <code>rdesktop</code> command-line application; an example:<br />
<code>rdesktop [machine]</code><br />
You can replace [machine] by the host name on the network or the IP address.</p>
<p>Now, if you want to open the screen at a specific resolution, for example 1280&#215;1024 resolution, add the <code>-g</code> flag:<br />
<code>rdesktop -g 1280x1024 [machine]</code></p>

<p><a href="http://feedads.g.doubleclick.net/~a/kaOwGk7s5AjQ3WlugILATecrHKk/0/da"><img src="http://feedads.g.doubleclick.net/~a/kaOwGk7s5AjQ3WlugILATecrHKk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kaOwGk7s5AjQ3WlugILATecrHKk/1/da"><img src="http://feedads.g.doubleclick.net/~a/kaOwGk7s5AjQ3WlugILATecrHKk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/3Puur-jgr4g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/screen-resolution-in-rdesktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/screen-resolution-in-rdesktop/</feedburner:origLink></item>
		<item>
		<title>MySQL error 2002</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/yFIBnaVBGKE/</link>
		<comments>http://www.ubuntued.com/mysql-error-2002/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 11:45:48 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=107</guid>
		<description><![CDATA[This solves the following MySQL error: Got error: 2002: Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql.sock&#8217; (2) when trying to connect You should try to investigate why this is happening. Still, a quick trick to fix it and can restore the missing sock is simply creating a symlink to the original one: ln [...]]]></description>
			<content:encoded><![CDATA[<p>This solves the following MySQL error:<br />
<em>Got error: 2002: Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql.sock&#8217; (2) when trying to connect</em></p>
<p>You should try to investigate why this is happening. Still, a quick trick to fix it and can restore the missing sock is simply creating a symlink to the original one:<br />
<code>ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock</code></p>

<p><a href="http://feedads.g.doubleclick.net/~a/myzI8at3Wh0i87M0zgpfcRiZX3g/0/da"><img src="http://feedads.g.doubleclick.net/~a/myzI8at3Wh0i87M0zgpfcRiZX3g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/myzI8at3Wh0i87M0zgpfcRiZX3g/1/da"><img src="http://feedads.g.doubleclick.net/~a/myzI8at3Wh0i87M0zgpfcRiZX3g/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/yFIBnaVBGKE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/mysql-error-2002/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/mysql-error-2002/</feedburner:origLink></item>
		<item>
		<title>MySQL database dump and restore</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/5zGyfLk3ekY/</link>
		<comments>http://www.ubuntued.com/mysql-database-dump-and-restore/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 11:41:01 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=95</guid>
		<description><![CDATA[This operation is useful when you want to back up a MySQL database, and then move it&#8217;s content to another database. I usually do it using phpMyAdmin, but due to limitations on the file size, it&#8217;s just quicker to use the command line. Dumping is the process of putting the database content to file. It [...]]]></description>
			<content:encoded><![CDATA[<p>This operation is useful when you want to back up a MySQL database, and then move it&#8217;s content to another database. I usually do it using phpMyAdmin, but due to limitations on the file size, it&#8217;s just quicker to use the command line.</p>
<p>Dumping is the process of putting the database content to file. It can be done using the following command:<br />
<code>mysqldump -u[user] -p[password] [db-name] &gt; dump.sql</code><br />
replacing where appropriate the parameters <code>[user]</code>, <code>[password]</code> and <code>[db-name]</code>; you should not use the brackets and watch the spaces.</p>
<p>To restore the content of the database from a dump file, use the following command:<br />
<code>mysql -u[user] -p[password] [db-name] &lt; dump.sql</code></p>
<p><strong>Troubleshoot: Error 1044</strong><br />
This solves the problem when getting the following error with $mysqldump$:<br />
<em>Got error: 1044: Access denied when using LOCK TABLES</em></p>
<p>The message is self explanatory. You have two solutions to solve the problem. You can either modify the database LOCK privileges (not explained here) or you could add <code>--single-transaction</code> flag to the <code>mysqldump</code> command as follows:<br />
<code>mysqldump -u[user] -p[password] [db-name] --single-transaction > dump.sql</code></p>

<p><a href="http://feedads.g.doubleclick.net/~a/kJUP0_heZSBzR1L0uYS9e4NjTM8/0/da"><img src="http://feedads.g.doubleclick.net/~a/kJUP0_heZSBzR1L0uYS9e4NjTM8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kJUP0_heZSBzR1L0uYS9e4NjTM8/1/da"><img src="http://feedads.g.doubleclick.net/~a/kJUP0_heZSBzR1L0uYS9e4NjTM8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/5zGyfLk3ekY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/mysql-database-dump-and-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/mysql-database-dump-and-restore/</feedburner:origLink></item>
		<item>
		<title>Reset GNOME Panel</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/dcrE8dMQcqM/</link>
		<comments>http://www.ubuntued.com/reset-gnome-panel/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 11:29:15 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=88</guid>
		<description><![CDATA[So you are customizing the GNOME panel in order to access your favorite apps quickly and easily. While doing so, you can&#8217;t figure out how to get rid of some annoying icons or just can&#8217;t move the Menu Bar back to its initial position (the problem I was facing). Sometimes you just need to reset [...]]]></description>
			<content:encoded><![CDATA[<p>So you are customizing the GNOME panel in order to access your favorite apps quickly and easily. While doing so, you can&#8217;t figure out how to get rid of some annoying icons or just can&#8217;t move the Menu Bar back to its initial position (the problem I was facing). Sometimes you just need to reset stuff.</p>
<p><img class="alignnone size-full wp-image-90" title="Gnome Panel" src="http://www.ubuntued.com/wp-content/uploads/2010/08/gnome_panel.png" alt="" width="313" height="26" /></p>
<p>Do the following:</p>
<ol>
<li><code>rm -r ~/.gconf/apps/panel</code><br />
This will remove the panel configuration, you can back it up first if you&#8217;re paranoid.</li>
<li>Log out of GNOME (shortcut CTRL + ALT + BACKSPACE)</li>
<li>Log back in and you&#8217;re done.</li>
</ol>

<p><a href="http://feedads.g.doubleclick.net/~a/5BF6H9K86wMU09mOks8tKKi3W3o/0/da"><img src="http://feedads.g.doubleclick.net/~a/5BF6H9K86wMU09mOks8tKKi3W3o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5BF6H9K86wMU09mOks8tKKi3W3o/1/da"><img src="http://feedads.g.doubleclick.net/~a/5BF6H9K86wMU09mOks8tKKi3W3o/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/dcrE8dMQcqM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/reset-gnome-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/reset-gnome-panel/</feedburner:origLink></item>
		<item>
		<title>Simple tar and untar</title>
		<link>http://feedproxy.google.com/~r/ubuntued/yToT/~3/omxnbREyD_Q/</link>
		<comments>http://www.ubuntued.com/simple-tar-and-untar/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 11:20:00 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[features]]></category>

		<guid isPermaLink="false">http://www.ubuntued.com/?p=69</guid>
		<description><![CDATA[It&#8217;s incredible the number of people who confuse tar, gzip not to mention the flags associated with these commands, note that the order is relevant. Quick reminder: tar is an archiver used to to combine multiple files into one gzip is a compression tool used to reduce the size of a file Now that you [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s incredible the number of people who confuse <code>tar</code>, <code>gzip</code> not to mention the flags associated with these commands, note that the order is relevant.</p>
<p>Quick reminder:</p>
<ul>
<li><code>tar</code> is an archiver used to to combine multiple files into one</li>
<li><code>gzip</code> is a compression tool used to reduce the size of a file</li>
</ul>
<p>Now that you finally understand the difference, here&#8217;s how the basic operations work:</p>
<ul>
<li>Create a tarball with the content of a directory:<br />
<code>tar -cvf foo.tar foo/</code>
</li>
<li>
Extract the content of a tarball:<br />
<code>tar -xvf foo.tar</code>
</li>
<li>Compress a tarball with <code>gzip</code>, this will replace <code>foo.tar</code> with a compressed version <code>foo.tar.gz</code>:<br />
<code>gzip foo.tar</code></li>
<li>
Extract a gzipped tarball:<br />
<code>tar -xvzf foo.tar.gz</code>
</li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/V1drNb3qmU9M7Bxkc1fF7SFaUGo/0/da"><img src="http://feedads.g.doubleclick.net/~a/V1drNb3qmU9M7Bxkc1fF7SFaUGo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/V1drNb3qmU9M7Bxkc1fF7SFaUGo/1/da"><img src="http://feedads.g.doubleclick.net/~a/V1drNb3qmU9M7Bxkc1fF7SFaUGo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/ubuntued/yToT/~4/omxnbREyD_Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntued.com/simple-tar-and-untar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ubuntued.com/simple-tar-and-untar/</feedburner:origLink></item>
	</channel>
</rss>
