mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 16:51:02 +00:00
Update cheatsheets
This commit is contained in:
29
realpath
Normal file
29
realpath
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# realpath
|
||||
|
||||
> Display the resolved absolute path for a file or directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/realpath>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user