.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH DIRNAME 1 2020年三月 "GNU coreutils 8.32" 用户命令 .SH 名称 dirname \- 去除文件名的最后一个组成部分 .SH 概述 \fBdirname\fP [\fI\,选项\/\fP] \fI\,名称\/\fP... .SH 描述 .\" Add any additional description here .PP 将每个名称的最后一个非斜线的组成部分与后缀的斜线移除并输出;如果所给名称不包含斜线 '/',则输出 '.'(即代表当前目录)。 .TP \fB\-z\fP, \fB\-\-zero\fP 使每行输出以 NUL 字符结束,不添加换行符 .TP \fB\-\-help\fP 显示此帮助信息并退出 .TP \fB\-\-version\fP 显示版本信息并退出 .SH 范例 .TP dirname /usr/bin/ \-> "/usr" .TP dirname dir1/str dir2/str \-> "dir1" 后接 "dir2" .TP dirname stdio.h \-> "." .SH 作者 由 David MacKenzie 和 Jim Meyering 编写。 .SH 报告错误 GNU coreutils 的在线帮助: .br 请向 报告翻译错误。 .SH 版权 Copyright \(co 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH 参见 basename(1), readlink(1) .PP .br 完整文档请见: .br 或者在本地使用: info \(aq(coreutils) dirname invocation\(aq .SH "跋" .br 本页面中文版由中文 man 手册页计划提供。 .br 中文 man 手册页计划:\fBhttps://github.com/man-pages-zh/manpages-zh\fR