Table of Contents

DIRNAME(1L) manual page

Name

dirname - strip filename suffix from pathname

Synopsis

dirname path
dirname {--help,--version}

Description

This manual page documents the GNU version of dirname. dirname prints the leading path part of the pathname path. If path does not contain a leading path, dirname prints `.' (meaning the current directory).

Options

--help
Print a usage message on standard output and exit successfully.
--version
Print version information on standard output then exit successfully.


Table of Contents