Manual: rust-basename
BASENAME(1) General Commands Manual BASENAME(1)
NAME
basename - Print NAME with any leading directory components removed If specified, also remove a trailing SUFFIX
SYNOPSIS
basename [-a|--multiple] [-s|--suffix] [-z|--zero] [-h|--help] [-V|--version] [name]
DESCRIPTION
Print NAME with any leading directory components removed If specified, also remove a trailing SUFFIX
OPTIONS
-a, --multiple
support multiple arguments and treat each as a NAME
-s, --suffix
remove a trailing SUFFIX; implies -a
-z, --zero
end each output line with NUL, not newline
-h, --help
Print help
-V, --version
Print version
VERSION
v(uutils coreutils) 0.8.0
2026-04-16 BASENAME(1)