<?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>Linux 101 Hacks &#187; 01. CD Command</title>
	<atom:link href="http://linux.101hacks.com/category/cd-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.101hacks.com</link>
	<description>Free eBook to Build a Strong Foundation in UNIX / Linux</description>
	<lastBuildDate>Fri, 09 Dec 2011 06:07:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Hack 6. Use “shopt -s cdspell” to automatically correct mistyped directory names on cd</title>
		<link>http://linux.101hacks.com/cd-command/shopt-s-cdspell/</link>
		<comments>http://linux.101hacks.com/cd-command/shopt-s-cdspell/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 00:49:32 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[01. CD Command]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=26</guid>
		<description><![CDATA[Use shopt -s cdspell to correct the typos in the cd command automatically as shown below. If you are not good at typing and make lot of mistakes, this will be very helpful. # cd /etc/mall -bash: cd: /etc/mall: No such file or directory # shopt -s cdspell # cd /etc/mall # pwd /etc/mail [Note: [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/cd-command/shopt-s-cdspell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hack 5. Use dirs, pushd and popd to manipulate directory stack</title>
		<link>http://linux.101hacks.com/cd-command/dirs-pushd-popd/</link>
		<comments>http://linux.101hacks.com/cd-command/dirs-pushd-popd/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 00:48:35 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[01. CD Command]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=55</guid>
		<description><![CDATA[You can use directory stack to push directories into it and later pop directory from the stack. Following three commands are used in this example. dirs: Display the directory stack pushd: Push directory into the stack popd: Pop directory from the stack and cd to it Dirs will always print the current directory followed by [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/cd-command/dirs-pushd-popd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hack 4. Use “cd -” to toggle between the last two directories</title>
		<link>http://linux.101hacks.com/cd-command/cd-hyphen-to-toggle-directories/</link>
		<comments>http://linux.101hacks.com/cd-command/cd-hyphen-to-toggle-directories/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 00:45:48 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[01. CD Command]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=51</guid>
		<description><![CDATA[You can toggle between the last two current directories using cd &#8211; as shown below. # cd /tmp/very/long/directory/structure/that/is/too/deep # cd /tmp/subdir1/subdir2/subdir3 # cd - # pwd /tmp/very/long/directory/structure/that/is/too/deep # cd - # pwd /tmp/subdir1/subdir2/subdir3 # cd - # pwd /tmp/very/long/directory/structure/that/is/too/deep]]></description>
		<wfw:commentRss>http://linux.101hacks.com/cd-command/cd-hyphen-to-toggle-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack 3. Perform mkdir and cd using a single command</title>
		<link>http://linux.101hacks.com/cd-command/mkdir-and-cd-together/</link>
		<comments>http://linux.101hacks.com/cd-command/mkdir-and-cd-together/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 00:43:55 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[01. CD Command]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=48</guid>
		<description><![CDATA[Sometimes when you create a new directory, you may cd to the new directory immediately to perform some work as shown below. # mkdir -p /tmp/subdir1/subdir2/subdir3 # cd /tmp/subdir1/subdir2/subdir3 # pwd /tmp/subdir1/subdir2/subdir3 Wouldn’t it be nice to combine both mkdir and cd in a single command? Add the following to the .bash_profile and re-login. $ [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/cd-command/mkdir-and-cd-together/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hack 2. Use cd alias to navigate up the directory effectively</title>
		<link>http://linux.101hacks.com/cd-command/cd-alias/</link>
		<comments>http://linux.101hacks.com/cd-command/cd-alias/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 06:51:01 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[01. CD Command]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=8</guid>
		<description><![CDATA[When you are navigating up a very long directory structure, you may be using cd ..\..\ with multiple ..\’s depending on how many directories you want to go up as shown below. # mkdir -p /tmp/very/long/directory/structure/that/is/too/deep # cd /tmp/very/long/directory/structure/that/is/too/deep # pwd /tmp/very/long/directory/structure/that/is/too/deep # cd ../../../../ # pwd /tmp/very/long/directory/structure Instead of executing cd ../../../.. to navigate [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/cd-command/cd-alias/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hack 1. Use CDPATH to define the base directory for cd command</title>
		<link>http://linux.101hacks.com/cd-command/cdpath/</link>
		<comments>http://linux.101hacks.com/cd-command/cdpath/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 00:48:51 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[01. CD Command]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=3</guid>
		<description><![CDATA[If you are frequently performing cd to subdirectories of a specific parent directory, you can set the CDPATH to the parent directory and perform cd to the subdirectories without giving the parent directory path as explained below. [ramesh@dev-db ~]# pwd /home/ramesh [ramesh@dev-db ~]# cd mail -bash: cd: mail: No such file or directory [Note: This [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/cd-command/cdpath/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.101hacks.com

Served from: linux.101hacks.com @ 2012-02-04 04:02:40 -->
