.MAN

Файл MAN

Unix Manual Page (roff/man-macro source)
Задать вопрос
БЫСТРЫЙ ОТВЕТ

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.

Разработчик: Bell Labs (Unix man system); groff/man macros maintained by the GNU Project Категория: Текстовые файлы Открыть стандартное MIME: text/troff
ОТКРЫВАЕТСЯ НА Windows macOS Linux
Связанные: .DOC · .ODT · .DOCX · .GDOC

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Aug 1, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла MAN?

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.

Безопасность и защита

РИСК: 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.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕUnix Manual Page (roff/man-macro source)также известен как man page, manpage
РАЗРАБОТЧИКBell Labs (Unix man system); groff/man macros maintained by the GNU Projectс 1971 (Unix Programmer's Manual, V1); man macros standardized through the 1970s-80s
MIME-ТИПtext/troff
ТИПPlain-text troff/groff source using the man macro package (roff markup)
СТАНДАРТОткрытый · без роялти
СВЯЗАННЫЕ.doc.odt.docx.gdoc
Это расширение также используется в…
  • 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.

Программы, открывающие файлы MAN

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

Технические подробности

глубокая спецификация
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
Выпущен1971 (Unix Programmer's Manual, V1); man macros standardized through the 1970s-80s
Последняя версияN/A (roff/man-macro convention; groff is the active implementation)
Открыть стандартноеДа · без роялти
Спецификацияman7.org

Конвертации MAN

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами MAN. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах MAN.

Часто задаваемые вопросы

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.

Ссылки

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

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.SWFSmall Web Format (Shockwave Flash)
10.PRO6XProPresenter 6 Bundle File

Похожие расширения

.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)

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z