realpath Command Examples

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

realpath {{path/to/file_or_directory}}

realpath {{[-e|--canonicalize-existing]}} {{path/to/file_or_directory}}

realpath {{[-L|--logical]}} {{path/to/file_or_directory}}

realpath {{[-s|--no-symlinks]}} {{path/to/file_or_directory}}

realpath {{[-q|--quiet]}} {{path/to/file_or_directory}}