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