From 3d14853f882e988794d34de4462405936d81dec1 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Mon, 1 Oct 2018 17:36:30 +0100 Subject: [PATCH] realpath: add page (#2357) --- pages/linux/realpath.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/linux/realpath.md diff --git a/pages/linux/realpath.md b/pages/linux/realpath.md new file mode 100644 index 000000000..1b994877f --- /dev/null +++ b/pages/linux/realpath.md @@ -0,0 +1,23 @@ +# realpath + +> Display the resolved absolute path for a file or directory. + +- Display the absolute path for a file or directory: + +`realpath {{path/to/file_or_directory}}` + +- Require all path components to exist: + +`realpath --canonicalize-existing {{path/to/file_or_directory}}` + +- Resolve ".." components before symlinks: + +`realpath --logical {{path/to/file_or_directory}}` + +- Disable symlink expansion: + +`realpath --no-symlinks {{path/to/file_or_directory}}` + +- Suppress error messages: + +`realpath --quiet {{path/to/file_or_directory}}`