Debian Codegraph @

upstream/mageia-cauldron/man1/dirname.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH DIRNAME "1" "September 2025" "GNU coreutils 9.8" "User Commands"
3 .SH NAME
4 dirname \- strip last component from file name
5 .SH SYNOPSIS
6 .B dirname
7 [\fI\,OPTION\/\fR] \fI\,NAME\/\fR...
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Output each NAME with its last non\-slash component and trailing slashes
12 removed; if NAME contains no /'s, output '.' (meaning the current directory).
13 .TP
14 \fB\-z\fR, \fB\-\-zero\fR
15 end each output line with NUL, not newline
16 .TP
17 \fB\-\-help\fR
18 display this help and exit
19 .TP
20 \fB\-\-version\fR
21 output version information and exit
22 .SH EXAMPLES
23 .TP
24 dirname /usr/bin/
25 \-> "/usr"
26 .TP
27 dirname dir1/str dir2/str
28 \-> "dir1" followed by "dir2"
29 .TP
30 dirname stdio.h
31 \-> "."
32 .SH AUTHOR
33 Written by David MacKenzie and Jim Meyering.
34 .SH "REPORTING BUGS"
35 Report bugs to: bug\[email protected]
36 .br
37 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
38 .br
39 General help using GNU software: <https://www.gnu.org/gethelp/>
40 .br
41 Report any translation bugs to <https://translationproject.org/team/>
42 .SH COPYRIGHT
43 Copyright \(co 2025 Free Software Foundation, Inc.
44 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
45 .br
46 This is free software: you are free to change and redistribute it.
47 There is NO WARRANTY, to the extent permitted by law.
48 .SH "SEE ALSO"
49 \fBbasename\fP(1), \fBreadlink\fP(1)
50 .PP
51 .br
52 Full documentation <https://www.gnu.org/software/coreutils/dirname>
53 .br
54 or available locally via: info \(aq(coreutils) dirname invocation\(aq