Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

realpath

v0.13.0
realpath [OPCIÓN]... ARCHIVO...

Imprimir la ruta resuelta

Options

--quiet, -q

Do not print warnings for invalid paths

--strip, --no-symlinks, -s

Only strip ‘.’ and ‘..’ components, but don’t resolve symbolic links

--zero, -z

Separate output filenames with \0 rather than newline

--logical, -L

resolve ‘..’ components before symlinks

--physical, -P

resolve symlinks as encountered (default)

--canonicalize, -E

all but the last component must exist (default)

--canonicalize-existing, -e

canonicalize by following every symlink in every component of the given name recursively, all components must exist

--canonicalize-missing, -m

canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence

--relative-to=<DIR>

print the resolved path relative to DIR

--relative-base=<DIR>

print absolute paths unless paths below DIR

Examples

Muestra la ruta absoluta de un archivo o directorio:

realpath {{ruta/al/archivo_o_directorio}}

Requiere que existan todos los componentes de la ruta:

realpath {{[-e|--canonicalize-existing]}} {{ruta/al/archivo_o_directorio}}

Resuelve los componentes .. antes que los enlaces simbólicos:

realpath {{[-L|--logical]}} {{ruta/al/archivo_o_directorio}}

Desactiva la expansión de enlaces simbólicos:

realpath {{[-s|--no-symlinks]}} {{ruta/al/archivo_o_directorio}}

Suprime los mensajes de error:

realpath {{[-q|--quiet]}} {{ruta/al/archivo_o_directorio}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.