username@ubuntu:~/$ dirname --help
用法:dirname [选项] 名称...
Output each NAME with its last non-slash component and trailing slashes
removed; if NAME contains no /'s, output '.' (meaning the current directory).
-z, --zero end each output line with NUL, not newline
--help 显示此帮助信息并退出
--version 显示版本信息并退出
Examples:
dirname /usr/bin/ -> "/usr"
dirname dir1/str dir2/str -> "dir1" followed by "dir2"
dirname stdio.h -> "."
username@ubuntu:~/qualcomm_android$ readlink --help
用法:readlink [选项]... 文件...
输出符号链接值或规范文件名。
-f, --canonicalize 递归的跟随给定文件名的所有符号链接以规范化,
除最后一个外所有组件必须存在
-e, --canonicalize-existing 递归跟随给定文件名的所有符号链接以规范化,
所有组件都必须存在
-m, --canonicalize-missing canonicalize by following
username@ubuntu:~/$ dirname --help用法:dirname [选项] 名称...Output each NAME with its last non-slash component and trailing slashesremoved; if NAME contains no /'s, output '.' (meaning the current directory). -z, --zero end each output line with NUL,.