BASENAME(1) General Commands Manual BASENAME(1)

basenamereturn non-directory portion of a pathname

basename string [suffix]

The basename utility strips any directory component and the suffix, from string, and writes the result to the standard output. A non-existent suffix is ignored.

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

dirname(1)

The basename utility is compliant with the specification.

December 29, 2019 EltaninOS