File system
dirname
Removes the filename from the path.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-09-09
Syntax
$dirname PFAD
Examples
$dirname /path/to/file.txt
Typical use cases
?
Standard usage
dirname --help
Note
dirname
Export