Find the word definition

Wikipedia
Dirname

dirname is a standard UNIX computer program. When dirname is given a pathname, it will delete any suffix beginning with the last slash character and return the result. dirname is described in the Single UNIX Specification and is primarily used in shell scripts.