SUFFIXES

Section: Linux Programmer's Manual (7)
Updated: April 25, 1993
Index Return to Main Contents
 

NAME

suffixes - list of file suffixes  

DESCRIPTION

It is customary to mark the contents of a file with the file suffix, which consists of a period, followed by one or more letters. Many standard utilities such as compilers use this to recognize the type of file they are dealing with, and the make(1) utility contains many rules for dealing with files based on suffix type.

Following is a list of suffixes which are likely to be found on a Linux system.

SuffixFile type



 -
backup file

 .C
C++ source code

 .F
FORTRAN source with cpp(1) directives

 .S
Assembler source with cpp(1) directives

 .Z
File compressed using compress(1)

 .[0-9]+pk
TeX 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

 .afm
PostScript font metrics

 .arc
ARC archive

 .awk
AWK language program

 .bak
Backup file

 .bm
Bitmap source

 .c
C source

 .cat
Message catalog files

 .cf
configuration file

 .conf
configuration file

 .config
configuration file

 .cweb
Donald Knuth's WEB for C

 .dat
data file

 .def
Modula-2 source for definition modules

 .def
other definition files

 .diff
ASCII File differences

 .doc
documentation file

 .dvi
TeX device independent output

 .el
EMACS lisp source

 .elc
compiled EMACS lisp

 .eps
encapsulated postscript

 .f
FORTRAN source

 .fas
pre-compiled common Lisp

 .fi
FORTRAN include files

 .gif
Graphics Interchange Format

 .gsf
Ghostscript fonts

 .gz
File compressed using gzip(1)

 .h
C or C++ header files

 .hlp
Help file

 .i
C source after preprocessing

 .icon
Bitmap source

 .image
Bitmap source

 .in
Input file for some utility

 .info
Files for the EMACS info browser

 .jpg
JPEG compressed picture format

 .l
lex(1) or flex(1) files

 .lib
Common Lisp library

 .ln
Files for use with lint(1)

 .lsp
Common Lisp source

 .man
Manual page

 .mf
Metafont (font generator for TeX) source

 .mm
Sources for groff(1) in mm - format

 .mod
Modula-2 source for implementation modules

 .o
object file

 .old
old or backup file

 .out
Output file, often executable program (a.out)

 .p
Pascal source

 .patch
File differences from patch(1)

 .pcf
X11 font files (???)

 .pfa
Postscript font definition files

 .pid
File to store daemon pid (e.g. crond.pid)

 .pl
Perl script

 .pr
Bitmap source

 .ps
Postscript file

 .r
RATFOR source

 .rules
Rules for something

 .s
Assembler source

 .sa
Something to do with shared libraries (???)

 .sc
sc(1) spreadsheed commands

 .sh
sh(1) scripts

 .shar
archive created by the shar(1) utility

 .so
DLL dynamic library

 .sty
LaTeX style files

 .sym
Modula-2 compiled definition modules

 .tar
archive created by the tar(1) utility

 .tar.Z
tar archive compressed with compress(1)

 .tar.gz
tar archive compressed with gzip(1)

 .taz
Tar archive compressed with compress(1)

 .tex
TeX or LaTeX source

 .texi
equivalent to .texinfo

 .texinfo
TeXinfo documentation source

 .tfm
TeX font metrics

 .tmpl
Template files

 .tpz
Tar archive compressed with gzip(1)

 .txt
Text file

 .uue
Binary file encoded with uuencode(1)

 .web
Donald Knuth's WEB

 .y
yacc(1) or bison(1) (parser generator) files

 .z
File compressed using pack(1) (or an old gzip(1))

 .zoo
ZOO archive

 ~
EMACS or patch backup file

 rc
Startup file, e.g. .newsrc
 

CONFORMS TO

General UNIX conventions  

BUGS

This list is not exhaustive.  

SEE ALSO

file(1), make(1)


 

Index

NAME
DESCRIPTION
CONFORMS TO
BUGS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 12:22:36 GMT, March 22, 2025