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

v(uutils coreutils) 0.8.0
realpath [OPTION]... FICHIER...

Afficher le chemin résolu

Options

--quiet, -q

Ne pas afficher d’avertissements pour les chemins invalides

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

Supprimer uniquement les composants ‘.’ et ‘..’, mais ne pas résoudre les liens symboliques

--zero, -z

Séparer les noms de fichiers de sortie avec \0 plutôt qu’avec un saut de ligne

--logical, -L

résoudre les composants ‘..’ avant les liens symboliques

--physical, -P

résoudre les liens symboliques rencontrés (par défaut)

--canonicalize, -E

tous les composants sauf le dernier doivent exister (par défaut)

--canonicalize-existing, -e

canonicaliser en suivant récursivement chaque lien symbolique dans chaque composant du nom donné, tous les composants doivent exister

--canonicalize-missing, -m

canonicaliser en suivant récursivement chaque lien symbolique dans chaque composant du nom donné, sans exigences sur l’existence des composants

--relative-to=<DIR>

afficher le chemin résolu relativement à RÉP

--relative-base=<DIR>

afficher les chemins absolus sauf pour les chemins sous RÉP

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Display the absolute path for a file or directory:

realpath {{path/to/file_or_directory}}

Require all path components to exist:

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

Resolve .. components before symlinks:

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

Disable symlink expansion:

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

Suppress error messages:

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

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.