BASENAME(1) General Commands Manual BASENAME(1)

basename - Print NAME with any leading directory components removed If specified, also remove a trailing SUFFIX

basename [-z] NAME [SUFFIX]
basename OPTION... NAME...

Print NAME with any leading directory components removed If specified, also remove a trailing SUFFIX

support multiple arguments and treat each as a NAME
remove a trailing SUFFIX; implies -a
end each output line with NUL, not newline
Print help
Print version

v(uutils coreutils) 0.11.0

2026-09-01