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

readlink

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

Imprimir valor de un enlace simbólico o nombre de archivo canónico.

Options

--canonicalize, -f

canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist

--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

--no-newline, -n

do not output the trailing delimiter

--quiet, -q

suppress most error messages

--silent, -s

suppress most error messages

--verbose, -v

report error message

--zero, -z

separate output with NUL rather than newline

Examples

Obtiene el archivo real al que apunta el enlace simbólico:

readlink {{ruta/al/archivo}}

Obtiene la ruta absoluta a un archivo:

readlink {{[-f|--canonicalize]}} {{ruta/al/archivo}}

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.