dirname dirname (1) - strip last component from file name
dirname basename (1) - deliver portions of path names
dirname dirname (3c) - report the parent directory name of a file path name
Please click on " man dirname " to see the Manual Page for this command.