File types you will meet
Jeremy Sanders
October 2011
Here is an inexhaustive list of typical file extensions. However file
extensions are often not used or needed in Unix. Often the file
command can give you useful information about a file.
- Library files (.a) - Archive files containing many
compiled output (.o) files. Used for linking code to programs.
- AWK scripts (.awk) - Scripts written for AWK.
- LATEX bibliography files (.bib) - Files containing
LATEX references.
- bzip2 (.bz2) - Files compressed using the bzip2
compression program.
- C source code files (.c/.h) - Files containing C source
code.
- C++ source code files (.cc/.C/.CC/.hh/.h/.H/.cpp/.hpp) -
Files containing C++ source code.
- csh/tcsh scripts (.csh) - Shell scritps written for the
csh/tcsh shells.
- Data files (.dat) - Normally files containing binary data.
- MS Word documents (.doc) - Open in StarOffice or
OpenOffice.
- DVI files (.dvi) - Output files the latex command makes
from .tex files. Use xdvi to look at these files. Use dvips to
convert these to postscript files.
- Encapsulated PostScript (.eps/.ps) - A subset of
PostScript files which can be put into other documents (e.g. LATEX
documents).
- Fortran source code (.f/.for/.f90./f77/.F) - The source
code to a Fortran program.
- Fig format figures (.fig) - xfig figure.
- FITS image/data files (.fits, .fit, .FIT) - Files
containg data or images in the FITS astronomical standard file
format.
- GIF files (.gif) - Old GIF (Compuserve) compressed image
files. Often found on the internet. GIF compression is
loss-less. Use gimp/xv/firefox/mozilla to look at these. GIF files
can be animated. Using PNG instead if possible (patent and size
reasons).
- Gzipped files (.gz) - Files compressed by the gzip
utility to make them smaller. Often you get two endings
(e.g. .tar.gz is a gzipped tar file). Use gunzip to decompress these
files.
- JPEG files (.jpg/.jpeg) - Image files compressed with the
lossy jpeg format. These are often found on the internet. Use
firefox/mozilla/xv/gimp to look at these files.
- Web-pages (.html/.htm) - Pages for viewing with a web
browser.
- Makefiles (Makefile) - Files with a list of rules,
typically saying how programs should be compiled.
- MP3 sound files (.mp3) - Files containing compressed
sound or music.
- MPEG animations (.mpg/.mpeg) - Animations in the lossy
MPEG format. Use convert to make these.
- Compiler output files (.o) - Files containing compiled
code.
- OpenOffice documents (.odt, .odp, .ods, .odg) -
OpenOffice/OpenDocument files.
- Perl scripts (.pl) - Scripts written in the Perl
language.
- PNG files (.png) - PNG (Portable Network Graphic)
lossless compressed image files. Often found on the internet. Use
gimp/firefox/mozilla to look at these. Use these instead of the GIF format
if possible. Usually smaller the equivalent GIF file.
- IDL programs (.pro) - Programs which can be run in the
IDL environment.
- PostScript files (.ps) - Adobe PostScript files
containing text/graphics to be printed. Use lp to print
these files or gv to see them on the screen. Use
convert/gimp to convert these to other image
formats. Encapsulated PostScript files can be embedded in LATEX documents. Many ps files are encapsulated PostScript files.
- Python scripts (.py) - Scripts written in the Python
language.
- Bourne Shell scripts (.sh) - Shell scripts written for
the Bourne Shell (/bin/sh) or the Bash shell (/usr/local/bin/bash).
- Shared libraries (.so) - Program libaries which can be
loaded at the time of running of a program.
- LATEX style files (.sty) - Files containing LATEX
styles of documents.
- Tar files (.tar) - Archive files containing other files
and directories. Use the gtar/tar command to decompress or
make these files.
- LATEX or TEX files (.tex/.ltx) - Files containing
LATEX or TEX source.
- Text files (.txt) - Files composed of normal characters -
letters, numbers and symbols. Often these will be human-written and
formatted into paragraphs.
- Compressed files (.Z) - Old compressed files (use
gzip instead now). These files can be decompressed with
gunzip.
- Zipped files (.zip) - Files containing other compressed
files. Often found on Windows. Use zip/unzip to
compress/decompress.
File types you will meet
This document was generated using the
LaTeX2HTML translator Version 2008 (1.71)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -split 0 -font_size 10pt -no_navigation types_files.tex
The translation was initiated by Jeremy Sanders on 2011-10-02
Jeremy Sanders
2011-10-02