1DIRNAME(1)                       User Commands                      DIRNAME(1)
2
3
4

NAME

6       dirname - strip non-directory suffix from file name
7

SYNOPSIS

9       dirname NAME
10       dirname OPTION
11

DESCRIPTION

13       Print  NAME  with  its trailing /component removed; if NAME contains no
14       /'s, output `.' (meaning the current directory).
15
16       --help display this help and exit
17
18       --version
19              output version information and exit
20

EXAMPLES

22       dirname /usr/bin/sort
23              Output "/usr/bin".
24
25       dirname stdio.h
26              Output ".".
27

AUTHOR

29       Written by David MacKenzie and Jim Meyering.
30

REPORTING BUGS

32       Report dirname bugs to bug-coreutils@gnu.org
33       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
34       General help using GNU software: <http://www.gnu.org/gethelp/>
35       Report   dirname   translation    bugs    to    <http://translationpro
36       ject.org/team/>
37
39       Copyright  ©  2010  Free Software Foundation, Inc.  License GPLv3+: GNU
40       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
41       This is free software: you are free  to  change  and  redistribute  it.
42       There is NO WARRANTY, to the extent permitted by law.
43

SEE ALSO

45       basename(1), readlink(1)
46
47       The  full  documentation for dirname is maintained as a Texinfo manual.
48       If the info and dirname programs are properly installed at  your  site,
49       the command
50
51              info coreutils 'dirname invocation'
52
53       should give you access to the complete manual.
54
55
56
57GNU coreutils 8.4                  June 2018                        DIRNAME(1)
Impressum