Change to your Favorite directories on the bash shell by scripting ‘cd’ | Linux Today

Change to your Favorite directories on the bash shell by scripting ‘cd’

Written By
PIE
Pétur Ingi Egilsson
Jul 20, 2010

[ Thanks to petur for this link. ]

“I’m sick and tired of having to remember and ‘cd’ long paths. I decided to create my own console based Favorites-script which makes use of a definition file which is easy to change.

“This post updates http://www.petur.eu/blog/?p=175

““cd /home/petur/Documents/school/2010/fall/chemistry†becomes “cdf chemistry†and “cd /var/log†becomes “cdf log—

Complete Story

PIE

Pétur Ingi Egilsson

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.