---

Basename Command in Linux

basename is a command-line utility that strips directory and trailing suffix from given file names.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis