Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Speed Up Your Linux Geekery with CDPATH
harikaram
follow
0
3-4-2009 11:29 AM
100 views
tags:
linux
,
shortcuts
,
tech
,
bash
,
shell
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
What Is the Speed of Thought?
Snowy scenes
Merry Christmas
Ballon Twisting Amazing Art
30 Unusual and Incredible Surreal Artworks
Heterochromia in Animals
Seeking Eye Contact
Peace of Mind
Happiness & Religiosity In America
Winter Solstice at Stonehenge
visit the
Top Clips page
View the Top Clips from
March 4, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/4f263c4b-1df3-4df9-8ce6-e071accc6844/D9A936FA-AAFF-4575-A8DE-78280453AA52/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://articles.techrepublic.com.com/5100-10878_11-5827311.html" href="http://articles.techrepublic.com.com/5100-10878_11-5827311.html" style="font-size: 11px;">articles.techrepublic.com.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://articles.techrepublic.com.com/5100-10878_11-5827311.html"><H2>7. Quickly jump to frequently-used directories</H2> <P>You probably already know that the $PATH variable lists bash's "search path" - the directories it will search when it can't find the requested file in the current directory. However, bash also supports the $CDPATH variable, which lists the directories the cd command will look in when attempting to change directories. To use this feature, assign a directory list to the $CDPATH variable, as shown in the example below:</p> <SPAN class="code">bash> CDPATH='.:~:/usr/local/apache/htdocs:/disk1/backups' bash> export CDPATH</SPAN> <P>Now, whenever you use the cd command, bash will check all the directories in the $CDPATH list for matches to the directory name.</P></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/D9A936FA-AAFF-4575-A8DE-78280453AA52/blog/" title="blog or email this clip"><img src="http://content6.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK