0

What I'm trying to do: Load an alias

The alias: alias notes='cd ~/project/notes'

My system: Ubuntu 16.04 and gnome terminal 3.18.3

In my home directory there are the following bash related files:

  • .bash_history
  • .bash_logout
  • .bashrc
  • .profile

I have written this alias in .profile but it is not being loaded. I also created (and later deleted) .bash_profile and put it there, but no luck.

Any suggestions?

2

Edit .bashrc

nano ~/.bashrc

Add alias notes='cd ~/project/notes' and save file.

Run . ~/.bashrc to activate the alias in an existing terminal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.