Linux / Unix: Change to a softlink’s absolute path (directory)

If you have quick links from your home directory to other places on your server, you might find this command useful:

cd -P pwd

It’s the Change Directory (cd) command with the -P flag (evaluates true base path from softlinks), followed by a apostrophe (same key as ~) and the pwd (print working directory) command, followed by another apostrophe

You could even create an alias to do this for you!

Related Posts:

  • No Related Posts
This entry was posted in Tech Tips. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *