Debian Codegraph @

upstream/debian-unstable/man1/dirname.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH DIRNAME "1" "February 2026" "GNU coreutils 9.10" "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 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#dirname-z'\fB\-z, \-\-zero\fP\X'tty: link'
15 end each output line with NUL, not newline
16 .TP
17 \X'tty: link https://www.gnu.org/software/coreutils/dirname#dirname--help'\fB\-\-help\fP\X'tty: link'
18 display this help and exit
19 .TP
20 \X'tty: link https://www.gnu.org/software/coreutils/dirname#dirname--version'\fB\-\-version\fP\X'tty: link'
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 "SEE ALSO"
43 \fBbasename\fP(1), \fBreadlink\fP(1)
44 .PP
45 .br
46 Full documentation <https://www.gnu.org/software/coreutils/dirname>
47 .br
48 or available locally via: info \(aq(coreutils) dirname invocation\(aq
49 .PP
50 .br
51 Packaged by Debian (9.10\-1)
52 .br
53 Copyright \(co 2026 Free Software Foundation, Inc.
54 .br
55 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
56 .br
57 This is free software: you are free to change and redistribute it.
58 .br
59 There is NO WARRANTY, to the extent permitted by law.