filetype [-vsl] FILE
Detect type of a file and export result to a variable.
3.5.8. dirname - strip last component from a path
3.5.10. ll - list a file or directory with details