.Dd January 23, 2015 .Dt DIRNAME 1 sbase\-VERSION .Sh NAME .Nm dirname .Nd strip final path component .Sh SYNOPSIS .Nm dirname .Ar path .Sh DESCRIPTION .Nm prints .Ar path with its final path component removed. .Sh SEE ALSO .Xr basename 1 , .Xr dirname 3 .Sh STANDARDS The .Nm utility is compliant with the .St -p1003.1-2008 specification.