The name of the tool is dirname, and it's mostly used in situations where-in you need to strip the last component from an absolute file-name.



新闻来源:Linux dirname command explained for beginners (4 examples)