Options (4)
-e, --canonicalize-existingbooleanRequire all path components to exist
Example:
realpath {{[-e|--canonicalize-existing]}} {{path/to/file_or_directory}}-L, --logicalbooleanResolve `..` components before symlinks
Example:
realpath {{[-L|--logical]}} {{path/to/file_or_directory}}-s, --no-symlinksbooleanDisable symlink expansion
Example:
realpath {{[-s|--no-symlinks]}} {{path/to/file_or_directory}}-q, --quietbooleanSuppress error messages
Example:
realpath {{[-q|--quiet]}} {{path/to/file_or_directory}}Examples (5)
Display the absolute path for a file or directory
realpath path/to/file_or_directoryRequire all path components to exist
realpath [-e|--canonicalize-existing] path/to/file_or_directoryResolve `..` components before symlinks
realpath [-L|--logical] path/to/file_or_directoryDisable symlink expansion
realpath [-s|--no-symlinks] path/to/file_or_directorySuppress error messages
realpath [-q|--quiet] path/to/file_or_directorymade by @shridhargupta | data from tldr-pages