Creating shortcuts

Ankush Grover ankush174 at gmail.com
Fri Mar 11 08:59:13 UTC 2005


On Fri, 11 Mar 2005 07:55:23 +0000, Paul Howarth <paul at city-fan.org> wrote:
> On Thu, 2005-03-10 at 13:18 -0500, Nat Gross wrote:
> > Paul Howarth wrote:
> >
> > > Nat Gross wrote:
> > >
> > <snip>
> >
> > >> 2. re: shortcuts. How do I get my link to display the true path? I
> > >> have a symlink to /usr/share/xxx. When I browse this (also at a
> > >> terminal prompt) , it shows the path as
> > >> "/home/nat/Desktop/theLinkName", but many times I prefer to have it
> > >> show the true path, "/usr/share/xxx".
> > >
> > >
> > > Re: appearance on the desktop; no idea (I never create shortcuts on
> > > the desktop myself - just out of habit rather than because I think
> > > it's a bad thing to do [which I don't]). At the terminal prompt, if
> > > you use the "-L" option to "ls", it'll show you details of the file
> > > being linked to rather than the details of the link itself.
> > >
> > > Paul.
> > >


> > I meant something else. If you cd into the link, or if you click on the
> > link from a file browser,  although the link target is indeed displayed,
> > the path displayed in the browser (or as part of the PROMPT in terminal)
> > is the link name, not the real target path.
> > (Desktop was just an example. This is true regardless of location.)
> > [By the way, this is not a high-priority question. Just a quickie, if
> > possible.]
> 
> You could fix this at the command line by using "cd `pwd`". You'd have
> to fiddle with aliases for "cd" in your ~/.bashrc to have this happen
> automatically.
> 
> Paul.
> --


You can create shortcuts like this 
S=/usr/share/xxxx
export S

in the .bash_profile

S=/usr/share/xxx
export S

whenever you type $S on the command prompt you will go to the
directory /usr/share/xxx.

Regards

Ankush




More information about the fedora-list mailing list