Is there a *nix command to get absolute(and canonicalized) path from relative path(with current path) or symbolic link?
|
You can use the
Some distributions also come with a |
||||
|
|
|
Portably, the
If you want to eliminate
There's no portable way to follow symbolic links. If you have a path to a directory, then on most unices Some unices provide a utility to print the “physical” path to a file.
|
||||
|
|
|
Is |
|||
|
|
|
If you want to go back to the original location,
or
I wish this helps. This was greatest solution for me. |
|||||
|
