I added this alias to jo/.bashrc
:
alias lm='cd /home/jose/Escritorio/GRADO\ SUPERIOR/.lmfinal/'
However, every time I type lm
I do not get it.
I added this alias to jo/.bashrc
:
alias lm='cd /home/jose/Escritorio/GRADO\ SUPERIOR/.lmfinal/'
However, every time I type lm
I do not get it.
In Bash a way to permanently make a particular configuration, as in your example a alias
, is to directly edit the file .bashrc
, which is a file that is always invoked when starting our shell
.
Doing this, what you have to keep in mind is that the behavior of the next bash
that we invoke is being modified and not the current one.
To see the change reflected in our% active shell
there are two ways:
Directly executing the alias lm='cd /home/jose/Escritorio/GRADO\ SUPERIOR/.lmfinal/'
command on the terminal.
By "refreshing" the configuration using the internal source
command, that is: source .bashrc
. In a much simpler and also more optimal way to be a POSIX standard (thanks Ivan & fedorqui) you can make use of the command equivalent to source
which is .
by . .bashrc
.
At all times you can see what aliases you have defined by typing alias
in your console. If you want to see one in particular you can write alias lm
.