×

dirname

Computer program
dirname is a standard computer program on Unix and Unix-like operating systems. 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... Wikipedia
Function: Strip non-directory suffix from FILENAME
Example: dirname /usr/bin/tail