LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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

Last edited by w3bd3vil; 01-28-2008 at 11:06 AM.
 
Old 01-28-2008, 05:17 PM   #2
Poetics
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.
 
  


Reply


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 05:02 PM
Adding a host alias in /etc/hosts tortle SUSE / openSUSE 3 12-05-2005 11:53 AM
adding alias wlan0 prism2_usb fails birdseye Linux - General 0 11-19-2005 06:42 AM
Adding Network Interface alias from command line WireLine Fedora 2 06-09-2005 12:08 AM
adding perm. alias to .bashrc Lleb_KCir Linux - General 7 12-09-2004 03:35 PM


All times are GMT -5. The time now is 08:37 PM.

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