Name
dirname
Synopsis
dirname pathname
Print pathname, excluding last level. Useful for stripping the actual filename from a pathname. See also basename.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.