BASENAME(1) BASENAME(1) basename - basename [] basename ... ... -a, --multiple -s, --suffix= -a -z, --zero NUL --help --version basename /usr/bin/sort -> "sort" basename include/stdio.h .h -> "stdio" basename -s .h include/stdio.h -> "stdio" basename -a any/str1 any/str2 -> "str1" "str2" David MacKenzie GNU coreutils Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. dirname(1), readlink(1) info '(coreutils) basename invocation' man man https://github.com/man-pages-zh/manpages- zh GNU coreutils 9.1 20229 BASENAME(1)