realpath Command Examples

Display the resolved absolute path for a file or directory. More information: https://www.gnu.org/software/coreutils/realpath.

realpath {{path/to/file_or_directory}}

realpath --canonicalize-existing {{path/to/file_or_directory}}

realpath --logical {{path/to/file_or_directory}}

realpath --no-symlinks {{path/to/file_or_directory}}

realpath --quiet {{path/to/file_or_directory}}