uu-dirname(1)

uu-dirname1

Strip last component from file name

Usage

dirname [OPTION] NAME ...

Overview

Strip last component from file name

Options

-z, --zero

separate output with NUL rather than newline

-h, --help

Print help

-V, --version

Print version

Extra

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

Version

v(uutils coreutils) 0.12.0

From uutils-coreutils 0.12.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.