Bash | Tutorials

David Carr

Creating an alias in terminal

I often run local sites from a projects folder that is stored in a dropbox folder the full path is long, so instead of using the full path I create an alias in temrinal which is a shortcut to that path. This means instead of typing:

cd ~/"Dropbox (Personal)/projects

I can type:


To do this open your bash profile:

nano ~/.bash_profile

Then create the alias:

alias projects='cd ~/"Dropbox (Personal)/projects"'

Restart terminal then type your shortcut and press enter to be taken to the alisd location.

Aliases are really useful and simple to setup.

Domains are often purchased from multiple providers, keeping track of where a domain is and its DNS settings can be tricky. Domain Mapper solves this by listing all your domains in one place. View your DNS settings and receive reminders to renew your domains. Try it today.

Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.