Debian Codegraph @

upstream/debian-trixie/man1/dirname.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH DIRNAME "1" "June 2025" "GNU coreutils 9.7" "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 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
36 .br
37 Report any translation bugs to <https://translationproject.org/team/>
38 .SH "SEE ALSO"
39 \fBbasename\fP(1), \fBreadlink\fP(1)
40 .PP
41 .br
42 Full documentation <https://www.gnu.org/software/coreutils/dirname>
43 .br
44 or available locally via: info \(aq(coreutils) dirname invocation\(aq
45 .PP
46 .br
47 Packaged by Debian (9.7\-3)
48 .br
49 Copyright \(co 2025 Free Software Foundation, Inc.
50 .br
51 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
52 .br
53 This is free software: you are free to change and redistribute it.
54 .br
55 There is NO WARRANTY, to the extent permitted by law.