basename Command Examples

Remove leading directory portions from a path. More information: https://www.gnu.org/software/coreutils/manual/html_node/basename-invocation.html.

basename {{path/to/file}}

basename {{path/to/directory}}

basename {{path/to/file}} {{suffix}}