Basename Command in Linux

basename is a command-line utility that strips directory and trailing suffix from given file names. Using the basename Command # The basename command supports two syntax formats: basename NAME [SUFFIX] …