Skip to main content
try to make the question make sense; deleted 17 characters in body
Source Link
Mikel
  • 58.7k
  • 16
  • 136
  • 155

To make it easier to get to ~/a/really/long/path I have a symlink. But

~/link -> ~/a/really/long/path

When I want to getdo

cd ~/link
cd ..    

it takes me to ~/a/really/long/ and changing directories

~

but I want to ../ moves mego to ~ instead.

~/a/really/long

Is there a way I canto do this?

I'mI am using bash.

To make it easier to get to ~/a/really/long/path I have a symlink. But I want to get to ~/a/really/long/ and changing directories to ../ moves me to ~ instead. Is there a way I can do this?

I'm using bash.

I have a symlink

~/link -> ~/a/really/long/path

When I do

cd ~/link
cd ..    

it takes me to

~

but I want to go to

~/a/really/long

Is there a way to do this?

I am using bash.

Tweeted twitter.com/#!/StackUnix/status/57233672843169792
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Source Link
Xodarap
  • 3.8k
  • 4
  • 22
  • 16

Changing parent directory (../) with symlinks

To make it easier to get to ~/a/really/long/path I have a symlink. But I want to get to ~/a/really/long/ and changing directories to ../ moves me to ~ instead. Is there a way I can do this?

I'm using bash.