.Dd 2015-10-08 .Dt DIRNAME 1 .Os sbase .Sh NAME .Nm dirname .Nd strip final path component .Sh SYNOPSIS .Nm .Ar path .Sh DESCRIPTION .Nm writes .Ar path with its final path component removed to stdout. .Sh SEE ALSO .Xr basename 1 , .Xr dirname 3 .Sh STANDARDS The .Nm utility is compliant with the .St -p1003.1-2013 specification.