DIRNAME(1) General Commands Manual DIRNAME(1)

dirnamereturn the directory portion of a pathname

dirname string

The dirname utility strips the filename component, from string, and writes the result to the standard output.

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

basename(1)

The dirname utility is compliant with the specification.

December 29, 2019 EltaninOS