LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding an alias (https://www.linuxquestions.org/questions/linux-newbie-8/adding-an-alias-616876/)

w3bd3vil 01-28-2008 10:02 AM

Adding an alias
 
I need to add an alias
Quote:

[root@localhost lib]# pwd
/usr/lib
[root@localhost lib]# cd ..
[root@localhost usr]# pwd
/usr
Instead of the ".." can I have something like "rr"
so that would make cd rr change the directory.

I want it this way

Quote:

root@localhost lib]# pwd
/usr/lib
[root@localhost lib]# cd rr
[root@localhost usr]# pwd
/usr
Is this possible?

Poetics 01-28-2008 04:17 PM

A simple trial on my home machine didn't work, but you should be able to alias 'rr' to 'cd ..' just fine if it's that big an issue.


All times are GMT -5. The time now is 05:55 PM.