This is usually called alias and not shortcut.
to do that:
alias CD='cd ..'
Now you can use the command CD instead of
But you have to note this will be just dynamic and you'll l ose all aliases when you close terminal and start again. To make it permanent you have to add it to your
Run the command
Add the above line (alias declaration) then save and close and source the
And now the alias CD is permanent .
You can list all aliases you use in your system(ubuntu come with some default aliases such as ls, egrep...), you can just type the command
alias and you can list all aliases in the system