I am in a directory which is a symlink
me@hostname:/home/me$ ls -al the_link -> actual_a actual_a actual_b actual_c me@hostname:/home/me$ cd the_link me@hostname:/home/me/the_link$
Now while I've had my shell open, some other process changed the symlink from
the_link -> actual_a to
the_link -> actual_b and possibly even did
rm -rf actual_a. If I run a command in my shell it'll do weird things. Is there a way to tell
cd to "re-cd" into the directory I'm in?
Obviously I can do
me@hostname:/home/me/the_link$ cd .. me@hostname:/home/me$ cd the_link
but can I do it in one command?