SUFFIXES(7)

๐ŸŽ€ NAME ๐ŸŽ€

suffixes โ€” list of file suffixes ๐Ÿ’–

okay so real quick, bestie: this is the suffixes(7) page from the Miscellaneous Information Manual, and it's lowkey one of the most useful little cheat sheets on the whole system, no cap. It's justโ€ฆ every file ending. All of them. Slay. ๐Ÿฆ‹


โœจ DESCRIPTION โœจ

So here's the vibe: it's customary to hint at what's inside a file using its file suffix, which (typically) is a period followed by one or more letters. Like, it's giving "trust me, I'm a .txt" energy.

Tons of standard utilities โ€” compilers, especially โ€” use the suffix to figure out what kind of file they're looking at. And the make(1) utility? Its whole rules situation is driven by file suffixes. So yeah, these little dots matter.

Here's a list of suffixes you're likely to run into on a Linux system ๐Ÿง:

  • ,v โ€” files for RCS (Revision Control System)
  • - โ€” backup file
  • .C โ€” C++ source code, equivalent to .cc
  • .F โ€” Fortran source with cpp(1) directives or file compressed using freeze
  • .S โ€” assembler source with cpp(1) directives
  • .Y โ€” file compressed using yabba
  • .Z โ€” file compressed using compress(1)
  • .[0-9]+gf โ€” TeX generic font files
  • .[0-9]+pk โ€” TeX packed font files
  • .[1-9] โ€” manual page for the corresponding section
  • .[1-9][a-z] โ€” manual page for section plus subsection
  • .a โ€” static object code library
  • .ad โ€” X application default resource file
  • .ada โ€” Ada source (may be body, spec, or combination)
  • .adb โ€” Ada body source
  • .ads โ€” Ada spec source
  • .afm โ€” PostScript font metrics
  • .al โ€” Perl autoload file
  • .am โ€” automake(1) input file
  • .arc โ€” arc(1) archive
  • .arj โ€” arj(1) archive
  • .asc โ€” OpenPGP ASCII-armored data
  • .asm โ€” (GNU) assembler source file
  • .au โ€” Audio sound file
  • .aux โ€” LaTeX auxiliary file
  • .avi โ€” (msvideo) movie
  • .awk โ€” AWK language program
  • .b โ€” LILO boot loader image
  • .bak โ€” backup file
  • .bash โ€” bash(1) shell script
  • .bb โ€” basic block list data produced by gcc -ftest-coverage
  • .bbg โ€” basic block graph data produced by gcc -ftest-coverage
  • .bbl โ€” BibTeX output
  • .bdf โ€” X font file
  • .bib โ€” TeX bibliographic database, BibTeX input
  • .bm โ€” bitmap source
  • .bmp โ€” bitmap
  • .bz2 โ€” file compressed using bzip2(1)
  • .c โ€” C source
  • .cat โ€” message catalog files
  • .cc โ€” C++ source
  • .cf โ€” configuration file
  • .cfg โ€” configuration file
  • .cgi โ€” WWW content generating script or program
  • .cls โ€” LaTeX Class definition
  • .class โ€” Java compiled byte-code
  • .conf โ€” configuration file
  • .config โ€” configuration file
  • .cpp โ€” equivalent to .cc
  • .csh โ€” csh(1) shell script
  • .cxx โ€” equivalent to .cc
  • .dat โ€” data file
  • .deb โ€” Debian binary package (deb(5))
  • .def โ€” Modula-2 source for definition modules
  • .def โ€” other definition files
  • .desc โ€” initial part of mail message unpacked with munpack(1)
  • .diff โ€” file differences (diff(1) command output)
  • .dir โ€” dbm data base directory file
  • .doc โ€” documentation file
  • .dsc โ€” Debian source package control file (dsc(5))
  • .dtx โ€” LaTeX package source file
  • .dvi โ€” TeX's device independent output
  • .el โ€” Emacs-Lisp source
  • .elc โ€” compiled Emacs-Lisp source
  • .eps โ€” encapsulated PostScript
  • .exp โ€” Expect source code
  • .f โ€” Fortran source
  • .f77 โ€” Fortran 77 source
  • .f90 โ€” Fortran 90 source
  • .fas โ€” precompiled Common-Lisp
  • .fi โ€” Fortran include files
  • .fig โ€” FIG image file (used by xfig(1))
  • .fmt โ€” TeX format file
  • .gif โ€” Compuserve Graphics Image File format
  • .gmo โ€” GNU format message catalog
  • .gsf โ€” Ghostscript fonts
  • .gz โ€” file compressed using gzip(1)
  • .h โ€” C or C++ header files
  • .help โ€” help file
  • .hf โ€” equivalent to .help
  • .hlp โ€” equivalent to .help
  • .htm โ€” poor man's .html
  • .html โ€” HTML document used with the World Wide Web
  • .hqx โ€” 7-bit encoded Macintosh file
  • .i โ€” C source after preprocessing
  • .icon โ€” bitmap source
  • .idx โ€” reference or datum-index file for hypertext or database system
  • .image โ€” bitmap source
  • .in โ€” configuration template, especially for GNU Autoconf
  • .info โ€” files for the Emacs info browser
  • .info-[0-9]+ โ€” split info files
  • .ins โ€” LaTeX package install file for docstrip
  • .itcl โ€” itcl source code; itcl ([incr Tcl]) is an OO extension of tcl
  • .java โ€” a Java source file
  • .jpeg โ€” Joint Photographic Experts Group format
  • .jpg โ€” poor man's .jpeg
  • .js โ€” JavaScript source code
  • .jsx โ€” JSX (JavaScript XML-like extension) source code
  • .kmap โ€” lyx(1) keymap
  • .l โ€” equivalent to .lex or .lisp
  • .lex โ€” lex(1) or flex(1) files
  • .lha โ€” lharc archive
  • .lib โ€” Common-Lisp library
  • .lisp โ€” Lisp source
  • .ln โ€” files for use with lint(1)
  • .log โ€” log file, in particular produced by TeX
  • .lsm โ€” Linux Software Map entry
  • .lsp โ€” Common-Lisp source
  • .lzh โ€” lharc archive
  • .m โ€” Objective-C source code
  • .m4 โ€” m4(1) source
  • .mac โ€” macro files for various programs
  • .man โ€” manual page (usually source rather than formatted)
  • .map โ€” map files for various programs
  • .me โ€” Nroff source using the me macro package
  • .mf โ€” Metafont (font generator for TeX) source
  • .mgp โ€” MagicPoint file
  • .mm โ€” sources for groff(1) in mm - format
  • .mo โ€” Message catalog binary file
  • .mod โ€” Modula-2 source for implementation modules
  • .mov โ€” (quicktime) movie
  • .mp โ€” Metapost source
  • .mp2 โ€” MPEG Layer 2 (audio) file
  • .mp3 โ€” MPEG Layer 3 (audio) file
  • .mpeg โ€” movie file
  • .o โ€” object file
  • .old โ€” old or backup file
  • .orig โ€” backup (original) version of a file, from patch(1)
  • .out โ€” output file, often executable program (a.out)
  • .p โ€” Pascal source
  • .pag โ€” dbm data base data file
  • .patch โ€” file differences for patch(1)
  • .pbm โ€” portable bitmap format
  • .pcf โ€” X11 font files
  • .pdf โ€” Adobe Portable Data Format (use Acrobat/acroread or xpdf)
  • .perl โ€” Perl source (see .ph, .pl, and .pm)
  • .pfa โ€” PostScript font definition files, ASCII format
  • .pfb โ€” PostScript font definition files, binary format
  • .pgm โ€” portable greymap format
  • .pgp โ€” OpenPGP binary data
  • .ph โ€” Perl header file
  • .php โ€” PHP program file
  • .php3 โ€” PHP3 program file
  • .pid โ€” File to store daemon PID (e.g., crond.pid)
  • .pl โ€” TeX property list file or Perl library file
  • .pm โ€” Perl module
  • .png โ€” Portable Network Graphics file
  • .po โ€” Message catalog source
  • .pod โ€” perldoc(1) file
  • .ppm โ€” portable pixmap format
  • .pr โ€” bitmap source
  • .ps โ€” PostScript file
  • .py โ€” Python source
  • .pyc โ€” compiled python
  • .qt โ€” quicktime movie
  • .r โ€” RATFOR source (obsolete)
  • .rej โ€” patches that patch(1) couldn't apply
  • .rpm โ€” RPM software package
  • .rtf โ€” Rich Text Format file
  • .rules โ€” rules for something
  • .s โ€” assembler source
  • .sa โ€” stub libraries for a.out shared libraries
  • .sc โ€” sc(1) spreadsheet commands
  • .scm โ€” Scheme source code
  • .sed โ€” sed source file
  • .sgml โ€” SGML source file
  • .sh โ€” sh(1) scripts
  • .shar โ€” archive created by the shar(1) utility
  • .shtml โ€” HTML using Server Side Includes
  • .so โ€” Shared library or dynamically loadable object
  • .sql โ€” SQL source
  • .sqml โ€” SQML schema or query program
  • .sty โ€” LaTeX style files
  • .sym โ€” Modula-2 compiled definition modules
  • .tar โ€” archive created by the tar(1) utility
  • .tar.Z โ€” tar(1) archive compressed with compress(1)
  • .tar.bz2 โ€” tar(1) archive compressed with bzip2(1)
  • .tar.gz โ€” tar(1) archive compressed with gzip(1)
  • .tar.xz โ€” tar(1) archive compressed with xz(1)
  • .taz โ€” tar(1) archive compressed with compress(1)
  • .tcl โ€” tcl source code
  • .tex โ€” TeX or LaTeX source
  • .texi โ€” equivalent to .texinfo
  • .texinfo โ€” Texinfo documentation source
  • .text โ€” text file
  • .tfm โ€” TeX font metric file
  • .tgz โ€” tar(1) archive compressed with gzip(1)
  • .tif โ€” poor man's .tiff
  • .tiff โ€” Tagged Image File Format
  • .tk โ€” tcl/tk script
  • .tmp โ€” temporary file
  • .tmpl โ€” template files
  • .ts โ€” TypeScript source code
  • .tsx โ€” TypeScript with JSX source code (.ts + .jsx)
  • .txt โ€” equivalent to .text
  • .uu โ€” equivalent to .uue
  • .uue โ€” binary file encoded with uuencode(1)
  • .vf โ€” TeX virtual font file
  • .vpl โ€” TeX virtual property list file
  • .w โ€” Silvio Levi's CWEB
  • .wav โ€” wave sound file
  • .web โ€” Donald Knuth's WEB
  • .wml โ€” Source file for Web Meta Language
  • .xbm โ€” X11 bitmap source
  • .xcf โ€” GIMP graphic
  • .xml โ€” eXtended Markup Language file
  • .xpm โ€” X11 pixmap source
  • .xs โ€” Perl xsub file produced by h2xs
  • .xsl โ€” XSL stylesheet
  • .xz โ€” file compressed with xz(1)
  • .y โ€” yacc(1) or bison(1) (parser generator) files
  • .z โ€” File compressed using pack(1) (or an old gzip(1))
  • .zip โ€” zip(1) archive
  • .zoo โ€” zoo(1) archive
  • .zst โ€” File compressed using zstd(1) format
  • ~ โ€” Emacs or patch(1) backup file
  • rc โ€” startup (run control) file, e.g., .newsrc

๐ŸŒˆ STANDARDS ๐ŸŒˆ

General UNIX conventions. (iconic, honestly ๐Ÿ’…)


๐Ÿ’€ BUGS ๐Ÿ’€

This list is not exhaustive. So likeโ€ฆ don't come for it if your fave obscure suffix isn't here, bestie ๐Ÿซถ


๐Ÿซถ SEE ALSO ๐Ÿซถ


okay and that's the whole page!! ๐ŸŽ€ this was the Linux man-pages 6.20 version of suffixes(7), dated 2026-05-11 โ€” go forth and file things correctly, you main character ๐Ÿ‘‘โœจ

๐Ÿ“ฆ where this page comes from
  • arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • ๐Ÿ“œ the page's license: Linux-man-pages-copyleft
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms