mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 13:53:52 +02:00
realpath: add page (#2357)
This commit is contained in:
parent
7391a4acff
commit
3d14853f88
1 changed files with 23 additions and 0 deletions
23
pages/linux/realpath.md
Normal file
23
pages/linux/realpath.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue