DIRNAME(1) General Commands Manual DIRNAME(1)

dirnamereturn the parent directory of a file pathname

dirname string

Returns the parent directory of string.

The dirname utility exits 0 on success, and >0 if an error occurs.

direname(3)

dirname should be compliant with the IEEE Std 1003.1-2024 (“POSIX.1”) specification.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2021-04-05 Linux 6.6.67-gentoo-x86_64