dirname do?strip the last component from a path, leaving the directory portion.
▸ Explain your own dirname command →$ dirname /usr/bin/sort
| -z | end each output line with NUL instead of a newline |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.