Linux "dirname" Command Line Options and Examples
parse pathname components

Output each NAME with its last non-slash component and trailing slashes removed; if NAME contains no /'s, output '.' (meaning the current directory).


Usage:

dirname [OPTION] NAME...






Command Line Options:

-z
end each output line with NUL, not newline
dirname -z ...
--help
display this help and exit
dirname --help ...
--version
output version information and exitEXAMPLESdirname /usr/bin/
dirname --version ...