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.7. dirname - strip last component from a path
3.5.9. findmnt - find a file system