basename is a standard computer program on Unix and Unix-like operating systems.
When basename is given a pathname, it will delete any prefix up to the last slash ('/') character and return the result.
basename is described in the Single UNIX Specification and is primarily used in shell scripts.
[2] The version of basename bundled in GNU coreutils was written by David MacKenzie.
[3] The command is available as a separate package for Microsoft Windows as part of the GnuWin32 project[4] and the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.