基础命令学习目录首页html
原文连接:https://blog.csdn.net/xiaofei125145/article/details/50620281shell
$ dirname /usr/bin/sort /usr/bin $ dirname stdio.h
$ dirname /usr/bin /usr $ dirname /usr/bin/ /usr
shellPath=$(cd "$(dirname "$0")"; pwd) echo $shellPaht