.tr Troff document

Text & source code

MIME typetext/troff
DescriptionTroff document
CategoryText & source code
Signature (magic bytes)27 2E 5C 22 ('.\")
27 5C 22 ('\")
2E 5C 22 (.\")
Based ontext/plain
Other extensions.roff, .t

Frequently asked questions

What is a .tr file?

A .tr file is a “Troff document” (MIME type text/troff).

How do I open a .tr file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .tr file?

By the bytes at the start of the file, the signature (magic bytes): 27 2E 5C 22 ('.\"), 27 5C 22 ('\") and 2E 5C 22 (.\"). On Linux and macOS, file --mime-type example.tr checks the real type regardless of the extension.

Which format is .tr based on?

Technically a .tr file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .tr?

The MIME type is text/troff. In the Apache web server: AddType text/troff .tr; in nginx: types { text/troff tr; }.

Nearby entries