≡ Menu

realpath command

How do I find out the canonicalised absolute pathname for a given command or file under Linux operating systems?
[click to continue…]

My programs and scripts needs a real path and not a a symbolic link. How to I determine a real path of any directory under Linux / UNIX like operating systems? How do I remove references to /./, /../ and extra '/' character in path?
[click to continue…]