Skip to content

Linux 中的  dirname  命令

假设有一个文件路径,比如  /Users/flavio/test.txt

执行

dirname /Users/flavio/test.txt

会返回  /Users/flavio  字符串:

alt text