Specify the filetype of a file

mate

mate --type {{filetype}} {{path/to/file}}

click the source code to copy