CmdID

CmdID / Commands

basename

Return non-directory portion of a pathname removing suffix. toybox

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD
basename [-a] [-s SUFFIX] NAME... | NAME [SUFFIX]
-aAll arguments are names
-s SUFFIXRemove suffix (implies -a)

Several platforms

from tldr-pages, CC BY 4.0

Remove leading directory portions from a path.

Show only the file name from a path

basename path/to/fileIdentify

Show only the rightmost directory name from a path

basename path/to/directoryIdentify

Show only the file name from a path, with a suffix removed

basename path/to/file suffixIdentify