Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mimedb(1) [debian man page]

mimedb(1)							       fish								 mimedb(1)

NAME
mimedb - mimedb - lookup file information via the mime database mimedb - lookup file information via the mime database Synopsis mimedb [OPTIONS] FILES... Description o FILES is a list of files to analyse o -t, --input-file-data the specified files type should be determined both by their filename and by their contents (Default) o -f, --input-filename the specified files type should be determined by their filename o -i, --input-mime the arguments are not files but mimetypes o -m, --output-mime the output will be the mimetype of each file (Default) o -f, --output-description the output will be the description of each mimetype o -a, --output-action the output will be the default action of each mimetype o -l, --launch launch the default action for the specified file(s) o -h, --help display a help message and exit o -v, --version display 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. Version 1.23.1 Sun Jan 8 2012 mimedb(1)

Check Out this Related Man Page

fileutil::magic::mimetype(n)					  file utilities				      fileutil::magic::mimetype(n)

__________________________________________________________________________________________________________________________________________________

NAME
fileutil::magic::mimetype - Procedures implementing mime-type recognition SYNOPSIS
package require Tcl 8.4 package require fileutil::magic::mimetype ?1.0.2? ::fileutil::magic::mimetype filename _________________________________________________________________ DESCRIPTION
This package provides a command for the recognition of file types in pure Tcl. The output is standardized to mime-types. The core part of the recognizer was generated from a "magic(5)" file containing the checks to perform to recognize files, and associated mime-types. ::fileutil::magic::mimetype filename This command is similar to the command fileutil::fileType. The output of the command for the specified file is not a list of attributes describing the type of the file, but a list of standard mime-types the file may have. This list will be empty if the type of the file is not recognized. REFERENCES
[1] File(1) sources [ftp://ftp.astron.com/pub/file/] This site contains the current sources for the file command, including the magic definitions used by it. The latter were used by us to generate this recognizer. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category fileutil :: magic of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. SEE ALSO
file(1), fileutil, magic(5) KEYWORDS
file recognition, file type, file utilities, mime, type fumagic 1.0.2 fileutil::magic::mimetype(n)
Man Page