mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 02:51:28 +00:00
Update cheatsheets
This commit is contained in:
25
pathchk
Normal file
25
pathchk
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pathchk
|
||||
|
||||
> Check the validity and portability of pathnames.
|
||||
> More information: <https://www.gnu.org/software/coreutils/pathchk>.
|
||||
|
||||
- Check pathnames for validity in the current system:
|
||||
|
||||
`pathchk {{path1 path2 …}}`
|
||||
|
||||
- Check pathnames for validity on a wider range of POSIX compliant systems:
|
||||
|
||||
`pathchk -p {{path1 path2 …}}`
|
||||
|
||||
- Check pathnames for validity on all POSIX compliant systems:
|
||||
|
||||
`pathchk --portability {{path1 path2 …}}`
|
||||
|
||||
- Only check for empty pathnames or leading dashes (-):
|
||||
|
||||
`pathchk -P {{path1 path2 …}}`
|
||||
Reference in New Issue
Block a user