Create Command Line Directory Shortcuts

Open the .bash_profile file (at the root) for editing:

nano .bash_profile

Add your alias:

alias shortcutToMyDevFolder='cd /Path/To/My/Dev/Folder'

Save the file, and then refresh the shell:

source ~/.bash_profile

Alternatively, symlimks can be created with the “ln” command (so that typing “cd shortcutToMyDevFolder” will do the same).

ln -s /Path/To/My/Dev/Folder shortcutToMyDevFolder
Back to top Back to Home