LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10:02 AM   #1
w3bd3vil
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
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 10:06 AM.
 
Old 01-28-2008, 04: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:05 AM.

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
Open Source Consulting | Domain Registration