UNIX file extensions

Bob Devine devine at vianet.UUCP
Fri Dec 12 04:35:55 AEST 1986


  Have file extensions for UNIX ever been codified?  That is, everyone
"knows" that a file ending with ".c" means it is a C source file, but
that is by convention and because the cc command enforces it by doing
certain things if the file ends that way.  Below is a list of file
extensions that I've come across.

  Does anyone know of other or multiple uses for an extension?

Bob Devine


extension used by
--------- ------------------
    .a    library file
    .b    unused (BCPL source file?)
    .c    C file
    .C    compact'ed file
    .d    directories
    .e    EFL file
    .f    Fortran file
    .g    unused
    .h    include file
    .i    unused
    .j    unused
    .k    unused
    .l    lisp or lex file
    .m    Modula file
    .m2   Modula-2 file
    .n    unused
    .o    object file
    .out  executable (as output), profile output, or nohup output file
    .p    Pascal file
    .q    unused
    .r    RatFor file
    .s    assembler file
    .sh   shell script file
    .t    unused
    .u    unused
    .v    unused
    .x    unused
    .y    YACC file
    .z    unused
    .Z    compress'ed file



More information about the Comp.unix.questions mailing list