||FreeBSD General Commands Manual
cleanname - clean a path name
cleanname [ -d pwd ] names ...
For each file name argument, cleanname, by lexical processing only,
prints the shortest equivalent string that names the same (possibly
hypothetical) file. It eliminates multiple and trailing slashes, and it
lexically interprets . and .. directory components in the name.
If the -d option is present, unrooted names are prefixed with
pwd/ before processing.
Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.