go to the .bashrc file and set it there make sure to build it again after changing that file if you have nano installed: nano ~/.bashrc in that file, go anywhere and set your alias as: alias d="cd /mnt/d" save and exit the file, rebuild it: source ~/.bashrc