Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-28-2008, 10:02 AM   #1
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
Adding an alias

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

I want it this way

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

Last edited by w3bd3vil; 01-28-2008 at 10:06 AM.
Old 01-28-2008, 04:17 PM   #2
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding IP alias to eth0 via SSH? natv Linux - Networking 4 02-21-2007 04:02 PM
Adding a host alias in /etc/hosts tortle SUSE / openSUSE 3 12-05-2005 10:53 AM
adding alias wlan0 prism2_usb fails birdseye Linux - General 0 11-19-2005 05:42 AM
Adding Network Interface alias from command line WireLine Fedora 2 06-08-2005 11:08 PM
adding perm. alias to .bashrc Lleb_KCir Linux - General 7 12-09-2004 02:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration