File Types and Names
In Linux systems, file types are usually inferred from file names.
File Name |
Description |
---|---|
.bz2 |
File compressed using the bzip2 compressor. |
.gz |
File compressed using the gzip compressor. |
.tar |
File compressed using the tar compressor. |
.tbz |
File compressed using the tar and bzip compressors. |
.tgz |
File compressed using the tar and gzip compressors. |
.zip |
File compressed using the ZIP compressor. Such files are generally used by MS-DOS applications. |
File Name |
Description |
---|---|
.conf or .cfg |
Configuration file. |
.lock |
Lock file, which is used to determine whether a program or device is being used. |
.rpm |
Software package file. |
File Name |
Description |
---|---|
.c |
Source code file in C language. |
.cpp |
Source code file in C++ language. |
.h |
Header file in C or C++ language. |
.o |
Program object file. |
.pl |
Perl script. |
.py |
Python script. |
.so |
Library file. |
.sh |
shell script. |
.tcl |
TCL script. |