2006-10-31 23:23:16 +08:00
|
|
|
\section mimedb mimedb - lookup file information via the mime database
|
2005-09-20 21:31:55 +08:00
|
|
|
|
|
|
|
\subsection mimedb-synopsis Synopsis
|
2014-08-01 10:37:32 +08:00
|
|
|
\fish{syn}
|
|
|
|
mimedb [OPTIONS] FILES...
|
|
|
|
\endfish
|
2005-09-20 21:31:55 +08:00
|
|
|
|
|
|
|
\subsection mimedb-description Description
|
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
\c mimedb queries the MIME type database and the `.desktop` files
|
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
|
|
|
installed on the system in order to find information on
|
2014-08-01 10:37:32 +08:00
|
|
|
the files listed in `FILES`. The information that `mimedb`
|
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
|
|
|
can retrieve includes the MIME type for a file, a description of the type,
|
2014-08-01 10:37:32 +08:00
|
|
|
and the default action that can be performed on the file. `mimedb` can also
|
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
|
|
|
be used to launch the default action for this file.
|
2006-06-13 23:44:09 +08:00
|
|
|
|
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
|
|
|
The following options are available:
|
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
- `-t`, `--input-file-data` determines the files' type both by their filename and by their contents (default behaviour).
|
|
|
|
- `-f`, `--input-filename` determines the files' type by their filename.
|
|
|
|
- `-i`, `--input-mime` specifies that the arguments are not files, but MIME types.
|
|
|
|
- `-m`, `--output-mime` outputs the MIME type of each file (default behaviour).
|
|
|
|
- `-f`, `--output-description` outputs the description of each MIME type.
|
|
|
|
- `-a`, `--output-action` outputs the default action of each MIME type.
|
|
|
|
- `-l`, `--launch` launches the default action for the specified files.
|
|
|
|
- `-h`, `--help` displays a help message and exit.
|
|
|
|
- `-v`, `--version` displays the version number and exits.
|
2005-09-20 21:31:55 +08:00
|
|
|
|