.roff 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.t, .tr

Frequently asked questions

What is a .roff file?

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

How do I open a .roff 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 .roff 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.roff checks the real type regardless of the extension.

Which format is .roff based on?

Technically a .roff 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 .roff?

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

Nearby entries