Skip to main content

For questions pertaining to basename, a utility that returns the non-directory portion of a pathname.

Returns non-directory portion of a pathname.

External reference

basename specification (The Open Group Base Specifications Issue 7, 2018 edition)