---
name: "xfm_mime.types"
section: "5"
platform: "linux"
package: "xfm"
version: "1.5.4-3"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/xfm_mime.types"
---

# xfm\_mime.types(5)

suffix based fall back mime type information

## NAME

xfm\_mime.types - suffix based fall back mime type information

## DESCRIPTION

When [*xfm*(1)](/xfm/1.md) cannot determine the type of a file using the values in [*xfm\_magic*(5)](/xfm_magic/5.md), this file is used to guess a type of a file. The file shipped with *xfm* by default just tells to include the files *~***/.mime.types** and **/etc/mime.types** to get the system wide settings.

## FORMAT

There is one entry per line. Empty lines and lines starting with a hash (#) are ignored. Prior entries overwrite later ones.

If a line starts with **!include** or **include** the rest of the line is treated as a filename to process before continuing with the rest of the file. (If the filename starts with a tilde followed by a slash, the tilde is replaced by the content of the *HOME* environment variable.)

Other lines contain the name of a *mime type* followed by an arbitrary number of filename *suffixes*, separated by spaces or tabs.

A file that got no other type associated by content and whose name ends with a dot followed by the specified **suffix**, will be treated as type **mime type**.

*Xfm* only recognizes suffixes with at most 7 characters.

## EXAMPLES

Otherwise unidentified files anding in **.c** are treated as **text/x-csrc**:\
 **text/x-csrc                                     c**\
 Same with **.c++**, **cpp**, **cxx** or **cc** as **text/x-c++src**:\
 **text/x-c++src                                   c++ cpp cxx cc**\

## FILES

- *$HOME***/.xfm/xfm\_mime.types**

  Unless [**xfm**(1)](/xfm/1.md) is told to look at a different place via X resource **Xfm.mimeTypesFile**, this is the first place xfm looks for a file with the describes format.

- **/etc/X11/xfm/xfm\_mime.types**

  If the first file does not exists, [**xfm**(1)](/xfm/1.md) (unless it gets told a different place via the X resource **Xfm.systemwideMimeTypesFile**) looks for this file.

- *$HOME***/.mime.types**

  General user settings normaly included from **/etc/X11/xfm/xfm\_mime.types**

- **/etc/mime.types**

  General system wide settings normaly included from **/etc/X11/xfm/xfm\_mime.types**

## SEE ALSO

[**xfm**(1)](/xfm/1.md)
