.MAN

MAN File

Unix Manual Page (roff/man-macro source)
Ask a question
QUICK ANSWER

A .man file is a Unix manual page - plain-text documentation for a command, written in roff/troff markup. On Linux and macOS run "man ./name.man" to read it formatted in the terminal, or use groff to convert it to PDF, HTML, or plain text. A text editor opens the raw source but shows formatting macros, not a finished page.

Developer: Bell Labs (Unix man system); groff/man macros maintained by the GNU Project Category: Text Files Open standard MIME: text/troff
OPENS ON Windows macOS Linux
Related: .DOC · .ODT · .DOCX · .GDOC

On this page

19k+ extensions indexed
Last reviewed Aug 1, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the MAN file format?

Files with the .man extension contain Unix user manuals written in roff source markup. Man pages can be accessed by issuing the man command followed by the name of a program, function, or topic. The source uses the *man* macro package - a set of dot-prefixed directives (.TH, .SH, .B, .TP) that man renders on demand via groff or mandoc. Opening a .man file in a text editor shows this raw markup rather than a formatted page; .man files support display formatting macros to control bold, italic, indentation, and table layout.

.man is a plain-text file and can be opened using any text editor, but user manuals are most commonly accessed using the system tool man invoked from the command line. Many graphical system environments offer various tools for viewing man documents. Man pages can be divided into the following sections:

  • NAME - name of the program, tool, library, or function, followed by a short description
  • SYNOPSIS - parameters and options for the command, and optionally a C function signature
  • DESCRIPTION - detailed description of the command and its functions
  • EXAMPLES - examples of how the command can be used
  • SEE ALSO - a list of related functions or commands

Unix/Linux user manuals are not commonly saved as .man files on disk. Usually manuals are stored with a suffix indicating which section of the manual the file belongs to - for example ls.1 or printf.3 - and installed pages are typically gzip-compressed as name.section.gz, decompressed transparently by man. Man pages are typically in English, although some manuals are localized on various distributions.

Man documents are divided into numbered sections. The man command by default displays the first matching entry out of 7 sections (Unix System V) or 8 (Linux/BSD), which are:

  • General commands
  • System calls
  • C library functions
  • Special files and device drivers
  • File formats and configuration files
  • Games and screensavers
  • Miscellaneous / overview pages
  • System administration and daemons (Linux/BSD only)

Accessing a given section requires issuing man section_number name - for example, man 5 passwd. Manual output can be redirected to a different application for easier reading, for example to cat or less.

Security & safety

RISK: LOW

A man-page source is plain text and does not execute on viewing. The only theoretical caution is that roff is a Turing-complete macro language and groff has historically had parsing bugs, so rendering a .man from a wholly untrusted source is best done with the safer, sandboxed mandoc rather than full groff. In normal use (reading docs from packages and projects) a .man file is harmless; opening it in a text editor is completely safe. Do not confuse it with a Windows .man mandatory profile, which is a registry hive, not a document.

Format details

in a nutshell
FULL NAMEUnix Manual Page (roff/man-macro source)aka man page, manpage
DEVELOPERBell Labs (Unix man system); groff/man macros maintained by the GNU Projectsince 1971 (Unix Programmer's Manual, V1); man macros standardized through the 1970s-80s
CATEGORYText Files
MIME TYPEtext/troff
TYPEPlain-text troff/groff source using the man macro package (roff markup)
STANDARDOpen · royalty-free
This extension is also used by…
  • Windows 2000/XP mandatory user profile - Legacy Windows .man file is a read-only roaming user profile (a renamed NTUSER.DAT registry hive) - unrelated to Unix man pages; the db_name's original meaning.
  • FoxPro / dBASE memory/menu file - Some old DOS database tools used .man for compiled menu or memo data; obsolete.

Programs that open MAN files

Windows2 apps
WSL (man + groff) Built-in In Windows Subsystem for Linux run 'man ./name.man'; or install groff via MSYS2 to render the page.
Notepad / any text editor Free Open the .man source as plain text to read the raw roff markup on Windows (no formatting applied).
macOS2 apps
TextEdit Built-in Opens the raw .man source as plain text (use Format > Make Plain Text); shows roff markup, not a rendered page.
man / groff (built-in) Built-in macOS ships man and groff: 'man ./name.man' to read it; groff to convert to text/PS/PDF.
Linux4 apps
Pico Free Legacy simple terminal editor - opens the raw source. Largely replaced by nano on modern systems.
man (man-db) Open-source Run 'man ./name.man' to view it formatted in the terminal; man calls groff to render bold/italics.
groff Open-source Render directly: 'groff -man -Tascii name.man | less' for text, '-Thtml' for HTML, '-Tpdf' for PDF.
Vim / GNU Emacs / nano (text editor) Open-source Open the raw .man source to read/edit the roff markup (you'll see .TH, .SH macros, not a formatted page).

Technical details

deep spec
File encodingASCII or UTF-8 plain text; no binary content or byte-order mark required
MIME typetext/troff (primary); also recognized as application/x-troff-man or text/plain
Markup languageroff/troff using the man macro package (an-old macros); dot-prefixed macro calls must appear at the start of a line
Title macro.TH (title header) - typically the first non-comment line; declares the page name, section number, date, and source package
Standard sectionsNAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXAMPLES, FILES, ENVIRONMENT, BUGS, SEE ALSO - each introduced by an .SH macro
Man-page section numbering7 sections on traditional Unix (System V); 8 on Linux and BSD - section 8 covers system administration commands
Typical file size1 KB - 100 KB; most pages fall between 5 KB and 30 KB
On-disk compressionInstalled pages are commonly gzip-compressed (e.g. ls.1.gz) and decompressed transparently by man at read time
Rendering enginegroff (GNU troff) on Linux; mandoc on BSD and modern macOS, which replaced groff as the default man renderer
Common file namingSection-number extension is standard on disk (ls.1, printf.3, passwd.5); the .man extension is used mainly by third-party or bundled documentation
Installation path/usr/share/man/manN/ on Linux and BSD, where N is the section number; macOS uses /usr/share/man/ with the same directory layout
Output formatsTerminal text via a pager (less), PostScript, PDF, HTML, and plain text - all produced on demand by groff -T
Related source formatsmdoc (BSD alternative macro set), pod2man (Perl POD to man), Sphinx man builder, and ronn (Markdown-to-man converter)
Developer / originBell Labs (original Unix man system, 1971); man macros and groff maintained by the GNU Project
Released1971 (Unix Programmer's Manual, V1); man macros standardized through the 1970s-80s
Latest versionN/A (roff/man-macro convention; groff is the active implementation)
Open standardYes · royalty-free
Specificationman7.org

MAN conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MAN files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about MAN files.

Frequently asked questions

What is a .man file?
A Unix manual page ('man page') - plain-text documentation for a command written in roff/troff with the man macros. (On classic Windows the same extension was a mandatory user profile, a registry hive - a different thing.)
How do I read a .man file?
On Linux/macOS/BSD run 'man ./name.man' to view it formatted in the terminal. To render it elsewhere, 'groff -man -Tascii name.man | less'. A text editor shows the raw markup.
How do I convert a man page to PDF?
Use groff: 'groff -man -Tpdf name.man > name.pdf'. For HTML use 'groff -Thtml' or 'mandoc -T html name.man'.
Why does my .man file show .TH and .SH instead of normal text?
You're seeing the raw roff source. Those dot-macros are formatting instructions; run the file through 'man' or 'groff' to render the finished page.
Can I open a .man file on Windows?
Yes as raw text (Notepad++), but to render it use WSL ('man ./name.man') or install groff via MSYS2. A text editor won't format it.
Is a .man file the same as a Windows user profile?
No - those are two unrelated formats sharing the extension. A Unix man page is plain-text documentation; a Windows 2000/XP .man is a mandatory (read-only) user profile, a renamed registry hive.

References

1GNU groff - manual page formatterwww.gnu.org
2man7.org - man(7): macros to format manual pagesman7.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.SB3Scratch 3.0 Project File

Related extensions

.DOCMicrosoft Word 97-2003 Document
.ODTOpenDocument Text
.DOCXMicrosoft Word Open XML Document
.GDOCGoogle Docs Shortcut (Link to a Google Docs document)
.LSTList File (generic plain-text list / listing)
.VNTvNote (mobile phone text note / memo)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z