This section describes commands that manipulate file names.
basename: Strip directory and suffix from a file nameSynopsis:
basename name [ suffix ]
The basename command removes any leading directory components
from name. If suffix is specified and is identical
to the end of name, it is removed from name as well.
basename prints the result on standard output.
The only options are `--help' and `--version'. See section Common options.
dirname: Strip non-directory suffix from a file nameSynopsis:
dirname name
dirname prints all but the final slash-delimited component
of name. If name is a single component,
dirname prints `.' (meaning the current directory).
The only options are `--help' and `--version'. See section Common options.
pathchk: Check file name portabilitySynopsis:
pathchk [ option ]... name...
For each name, pathchk prints a message if any of
these conditions is true:
The program accepts the following option. Also see section Common options.
0 if all specified file names passed all of the tests, 1 otherwise.
Go to the first, previous, next, last section, table of contents.