realpath command

How do I find out the canonicalised absolute pathname for a given command or file under Linux operating systems?

{ 0 comments }

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?

{ 12 comments }