NAME
mimedb - mimedb - lookup file information via the mime database
mimedb - lookup file information via the mime database
Synopsis
mimedb [OPTIONS] FILES...
Description
- •
-
FILESis a list of files to analyse
- •
-
-t,--input-file-datathe specified files type should be determined both by their filename and by their contents (Default)
- •
-
-f,--input-filenamethe specified files type should be determined by their filename
- •
-
-i,--input-mimethe arguments are not files but mimetypes
- •
-
-m,--output-mimethe output will be the mimetype of each file (Default)
- •
-
-f,--output-descriptionthe output will be the description of each mimetype
- •
-
-a,--output-actionthe output will be the default action of each mimetype
- •
-
-l,--launchlaunch the default action for the specified file(s)
- •
-
-h,--helpdisplay a help message and exit
- •
-
-v,--versiondisplay version number and exit
The mimedb command is used to query the mimetype database and the .desktop files installed on the system in order to find information on a file. The information that mimedb can retrieve includes the mimetype for a file, a description of the type and what its default action is. mimedb can also be used to launch the default action for this file.