| 1 |
'\" t |
| 2 |
.\" Copyright 1993, Thomas Koenig <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 6 |
.\" |
| 7 |
.TH SUFFIXES 7 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
suffixes \- list of file suffixes |
| 10 |
.SH DESCRIPTION |
| 11 |
It is customary to indicate the contents of a file with the file suffix, |
| 12 |
which (typically) consists of a period, followed by one or more letters. |
| 13 |
Many standard utilities, such as compilers, use this to recognize the type of |
| 14 |
file they are dealing with. |
| 15 |
The |
| 16 |
.BR make (1) |
| 17 |
utility is driven by rules based on file suffix. |
| 18 |
.P |
| 19 |
Following is a list of suffixes which are likely to be found on a |
| 20 |
Linux system. |
| 21 |
.P |
| 22 |
.TS |
| 23 |
l | l |
| 24 |
_ | _ |
| 25 |
lI | l . |
| 26 |
Suffix File type |
| 27 |
\&,v files for RCS (Revision Control System) |
| 28 |
\&- backup file |
| 29 |
\&.C C++ source code, equivalent to \f[I].cc\f[] |
| 30 |
\&.F Fortran source with \f[B]cpp\f[](1) directives |
| 31 |
\& or file compressed using freeze |
| 32 |
\&.S assembler source with \f[B]cpp\f[](1) directives |
| 33 |
\&.Y file compressed using yabba |
| 34 |
\&.Z file compressed using \f[B]compress\f[](1) |
| 35 |
\&.[0\-9]+gf TeX generic font files |
| 36 |
\&.[0\-9]+pk TeX packed font files |
| 37 |
\&.[1\-9] manual page for the corresponding section |
| 38 |
\&.[1\-9][a-z] manual page for section plus subsection |
| 39 |
\&.a static object code library |
| 40 |
\&.ad X application default resource file |
| 41 |
\&.ada Ada source (may be body, spec, or combination) |
| 42 |
\&.adb Ada body source |
| 43 |
\&.ads Ada spec source |
| 44 |
\&.afm PostScript font metrics |
| 45 |
\&.al Perl autoload file |
| 46 |
\&.am \f[B]automake\f[](1) input file |
| 47 |
\&.arc \f[B]arc\f[](1) archive |
| 48 |
\&.arj \f[B]arj\f[](1) archive |
| 49 |
\&.asc PGP ASCII-armored data |
| 50 |
\&.asm (GNU) assembler source file |
| 51 |
\&.au Audio sound file |
| 52 |
\&.aux LaTeX auxiliary file |
| 53 |
\&.avi (msvideo) movie |
| 54 |
\&.awk AWK language program |
| 55 |
\&.b LILO boot loader image |
| 56 |
\&.bak backup file |
| 57 |
\&.bash \f[B]bash\f[](1) shell script |
| 58 |
\&.bb basic block list data produced by |
| 59 |
\& gcc \-ftest\-coverage |
| 60 |
\&.bbg basic block graph data produced by |
| 61 |
\& gcc \-ftest\-coverage |
| 62 |
\&.bbl BibTeX output |
| 63 |
\&.bdf X font file |
| 64 |
\&.bib TeX bibliographic database, BibTeX input |
| 65 |
\&.bm bitmap source |
| 66 |
\&.bmp bitmap |
| 67 |
\&.bz2 file compressed using \f[B]bzip2\f[](1) |
| 68 |
\&.c C source |
| 69 |
\&.cat message catalog files |
| 70 |
\&.cc C++ source |
| 71 |
\&.cf configuration file |
| 72 |
\&.cfg configuration file |
| 73 |
\&.cgi WWW content generating script or program |
| 74 |
\&.cls LaTeX Class definition |
| 75 |
\&.class Java compiled byte-code |
| 76 |
\&.conf configuration file |
| 77 |
\&.config configuration file |
| 78 |
\&.cpp equivalent to \f[I].cc\f[] |
| 79 |
\&.csh \f[B]csh\f[](1) shell script |
| 80 |
\&.cxx equivalent to \f[I].cc\f[] |
| 81 |
\&.dat data file |
| 82 |
\&.deb Debian software package |
| 83 |
\&.def Modula-2 source for definition modules |
| 84 |
\&.def other definition files |
| 85 |
\&.desc initial part of mail message unpacked with |
| 86 |
\& \f[B]munpack\f[](1) |
| 87 |
\&.diff T{ |
| 88 |
file differences (\c |
| 89 |
.BR diff (1) |
| 90 |
command output) |
| 91 |
T} |
| 92 |
\&.dir dbm data base directory file |
| 93 |
\&.doc documentation file |
| 94 |
\&.dsc Debian Source Control (source package) |
| 95 |
\&.dtx LaTeX package source file |
| 96 |
\&.dvi TeX's device independent output |
| 97 |
\&.el Emacs-Lisp source |
| 98 |
\&.elc compiled Emacs-Lisp source |
| 99 |
\&.eps encapsulated PostScript |
| 100 |
\&.exp Expect source code |
| 101 |
\&.f Fortran source |
| 102 |
\&.f77 Fortran 77 source |
| 103 |
\&.f90 Fortran 90 source |
| 104 |
\&.fas precompiled Common-Lisp |
| 105 |
\&.fi Fortran include files |
| 106 |
\&.fig T{ |
| 107 |
FIG image file (used by |
| 108 |
.BR xfig (1)) |
| 109 |
T} |
| 110 |
\&.fmt TeX format file |
| 111 |
\&.gif Compuserve Graphics Image File format |
| 112 |
\&.gmo GNU format message catalog |
| 113 |
\&.gsf Ghostscript fonts |
| 114 |
\&.gz file compressed using \f[B]gzip\f[](1) |
| 115 |
\&.h C or C++ header files |
| 116 |
\&.help help file |
| 117 |
\&.hf equivalent to \f[I].help\f[] |
| 118 |
\&.hlp equivalent to \f[I].help\f[] |
| 119 |
\&.htm poor man's \f[I].html\f[] |
| 120 |
\&.html HTML document used with the World Wide Web |
| 121 |
\&.hqx 7-bit encoded Macintosh file |
| 122 |
\&.i C source after preprocessing |
| 123 |
\&.icon bitmap source |
| 124 |
\&.idx reference or datum-index file for hypertext |
| 125 |
\& or database system |
| 126 |
\&.image bitmap source |
| 127 |
\&.in configuration template, especially for GNU Autoconf |
| 128 |
\&.info files for the Emacs info browser |
| 129 |
\&.info-[0\-9]+ split info files |
| 130 |
\&.ins LaTeX package install file for docstrip |
| 131 |
\&.itcl itcl source code; |
| 132 |
\& itcl ([incr Tcl]) is an OO extension of tcl |
| 133 |
\&.java a Java source file |
| 134 |
\&.jpeg Joint Photographic Experts Group format |
| 135 |
\&.jpg poor man's \f[I].jpeg\f[] |
| 136 |
\&.js JavaScript source code |
| 137 |
\&.jsx JSX (JavaScript XML-like extension) source code |
| 138 |
\&.kmap \f[B]lyx\f[](1) keymap |
| 139 |
\&.l equivalent to \f[I].lex\f[] or \f[I].lisp\f[] |
| 140 |
\&.lex \f[B]lex\f[](1) or \f[B]flex\f[](1) files |
| 141 |
\&.lha lharc archive |
| 142 |
\&.lib Common-Lisp library |
| 143 |
\&.lisp Lisp source |
| 144 |
\&.ln files for use with \f[B]lint\f[](1) |
| 145 |
\&.log log file, in particular produced by TeX |
| 146 |
\&.lsm Linux Software Map entry |
| 147 |
\&.lsp Common-Lisp source |
| 148 |
\&.lzh lharc archive |
| 149 |
\&.m Objective-C source code |
| 150 |
\&.m4 \f[B]m4\f[](1) source |
| 151 |
\&.mac macro files for various programs |
| 152 |
\&.man manual page (usually source rather than formatted) |
| 153 |
\&.map map files for various programs |
| 154 |
\&.me Nroff source using the me macro package |
| 155 |
\&.mf Metafont (font generator for TeX) source |
| 156 |
\&.mgp MagicPoint file |
| 157 |
\&.mm sources for \f[B]groff\f[](1) in mm - format |
| 158 |
\&.mo Message catalog binary file |
| 159 |
\&.mod Modula-2 source for implementation modules |
| 160 |
\&.mov (quicktime) movie |
| 161 |
\&.mp Metapost source |
| 162 |
\&.mp2 MPEG Layer 2 (audio) file |
| 163 |
\&.mp3 MPEG Layer 3 (audio) file |
| 164 |
\&.mpeg movie file |
| 165 |
\&.o object file |
| 166 |
\&.old old or backup file |
| 167 |
\&.orig backup (original) version of a file, from \f[B]patch\f[](1) |
| 168 |
\&.out output file, often executable program (a.out) |
| 169 |
\&.p Pascal source |
| 170 |
\&.pag dbm data base data file |
| 171 |
\&.patch file differences for \f[B]patch\f[](1) |
| 172 |
\&.pbm portable bitmap format |
| 173 |
\&.pcf X11 font files |
| 174 |
\&.pdf Adobe Portable Data Format |
| 175 |
\& (use Acrobat/\f[B]acroread\f[] or \f[B]xpdf\f[]) |
| 176 |
\&.perl Perl source (see .ph, .pl, and .pm) |
| 177 |
\&.pfa PostScript font definition files, ASCII format |
| 178 |
\&.pfb PostScript font definition files, binary format |
| 179 |
\&.pgm portable greymap format |
| 180 |
\&.pgp PGP binary data |
| 181 |
\&.ph Perl header file |
| 182 |
\&.php PHP program file |
| 183 |
\&.php3 PHP3 program file |
| 184 |
\&.pid File to store daemon PID (e.g., crond.pid) |
| 185 |
\&.pl TeX property list file or Perl library file |
| 186 |
\&.pm Perl module |
| 187 |
\&.png Portable Network Graphics file |
| 188 |
\&.po Message catalog source |
| 189 |
\&.pod \f[B]perldoc\f[](1) file |
| 190 |
\&.ppm portable pixmap format |
| 191 |
\&.pr bitmap source |
| 192 |
\&.ps PostScript file |
| 193 |
\&.py Python source |
| 194 |
\&.pyc compiled python |
| 195 |
\&.qt quicktime movie |
| 196 |
\&.r RATFOR source (obsolete) |
| 197 |
\&.rej patches that \f[B]patch\f[](1) couldn't apply |
| 198 |
\&.rpm RPM software package |
| 199 |
\&.rtf Rich Text Format file |
| 200 |
\&.rules rules for something |
| 201 |
\&.s assembler source |
| 202 |
\&.sa stub libraries for a.out shared libraries |
| 203 |
\&.sc \f[B]sc\f[](1) spreadsheet commands |
| 204 |
\&.scm Scheme source code |
| 205 |
\&.sed sed source file |
| 206 |
\&.sgml SGML source file |
| 207 |
\&.sh \f[B]sh\f[](1) scripts |
| 208 |
\&.shar archive created by the \f[B]shar\f[](1) utility |
| 209 |
\&.shtml HTML using Server Side Includes |
| 210 |
\&.so Shared library or dynamically loadable object |
| 211 |
\&.sql SQL source |
| 212 |
\&.sqml SQML schema or query program |
| 213 |
\&.sty LaTeX style files |
| 214 |
\&.sym Modula-2 compiled definition modules |
| 215 |
\&.tar archive created by the \f[B]tar\f[](1) utility |
| 216 |
\&.tar.Z \f[B]tar\f[](1) archive compressed with \f[B]compress\f[](1) |
| 217 |
\&.tar.bz2 \f[B]tar\f[](1) archive compressed with \f[B]bzip2\f[](1) |
| 218 |
\&.tar.gz \f[B]tar\f[](1) archive compressed with \f[B]gzip\f[](1) |
| 219 |
\&.taz \f[B]tar\f[](1) archive compressed with \f[B]compress\f[](1) |
| 220 |
\&.tcl tcl source code |
| 221 |
\&.tex TeX or LaTeX source |
| 222 |
\&.texi equivalent to \f[I].texinfo\f[] |
| 223 |
\&.texinfo Texinfo documentation source |
| 224 |
\&.text text file |
| 225 |
\&.tfm TeX font metric file |
| 226 |
\&.tgz \f[B]tar\f[](1) archive compressed with \f[B]gzip\f[](1) |
| 227 |
\&.tif poor man's \f[I].tiff\f[] |
| 228 |
\&.tiff Tagged Image File Format |
| 229 |
\&.tk tcl/tk script |
| 230 |
\&.tmp temporary file |
| 231 |
\&.tmpl template files |
| 232 |
\&.ts TypeScript source code |
| 233 |
\&.tsx TypeScript with JSX source code (\f[I].ts\f[] + \f[I].jsx\f[]) |
| 234 |
\&.txt equivalent to \f[I].text\f[] |
| 235 |
\&.uu equivalent to \f[I].uue\f[] |
| 236 |
\&.uue binary file encoded with \f[B]uuencode\f[](1) |
| 237 |
\&.vf TeX virtual font file |
| 238 |
\&.vpl TeX virtual property list file |
| 239 |
\&.w Silvio Levi's CWEB |
| 240 |
\&.wav wave sound file |
| 241 |
\&.web Donald Knuth's WEB |
| 242 |
\&.wml Source file for Web Meta Language |
| 243 |
\&.xbm X11 bitmap source |
| 244 |
\&.xcf GIMP graphic |
| 245 |
\&.xml eXtended Markup Language file |
| 246 |
\&.xpm X11 pixmap source |
| 247 |
\&.xs Perl xsub file produced by h2xs |
| 248 |
\&.xsl XSL stylesheet |
| 249 |
\&.y \f[B]yacc\f[](1) or \f[B]bison\f[](1) (parser generator) files |
| 250 |
\&.z T{ |
| 251 |
File compressed using |
| 252 |
.BR pack (1) |
| 253 |
(or an old |
| 254 |
.BR gzip (1)) |
| 255 |
T} |
| 256 |
\&.zip \f[B]zip\f[](1) archive |
| 257 |
\&.zoo \f[B]zoo\f[](1) archive |
| 258 |
\&\[ti] Emacs or \f[B]patch\f[](1) backup file |
| 259 |
\&rc startup (`run control') file, e.g., \f[I].newsrc\f[] |
| 260 |
.TE |
| 261 |
.SH STANDARDS |
| 262 |
General UNIX conventions. |
| 263 |
.SH BUGS |
| 264 |
This list is not exhaustive. |
| 265 |
.SH SEE ALSO |
| 266 |
.BR file (1), |
| 267 |
.BR make (1) |