filetype [-vsl] FILE
Detect type of a file and export result to a variable.
verbose
set variable VAR to shortname
list known filetypes
3.5.8. dirname - strip last component from a path
3.5.10. findmnt - find a file system