pathchk

check path names 

Command


SYNOPSIS

pathchk [-p] pathname...


DESCRIPTION

pathchk checks one or more pathnames for validity and portability (based on the underlying file system). A pathname is valid if you can use it to create or access a file without causing a syntax error. A pathname is portable if the file system does not truncate the name when it tries to use it. pathchk writes an error message indicating the error detected and the erroneous path name if any pathname

Options

-p 

instead of using the previous criteria, writes an error message if pathname

  • is longer than _POSIX_PATH_MAX bytes;
  • contains any component longer than _POSIX_NAME_MAX bytes;
  • contains any character in any component that is not in the portable file name character set.


DIAGNOSTICS

Possible exit status values are:

0 

All pathnames passed the check.

1 

An error occurred.

2 

Unknown command line option.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.4 Documentation Build 39.