There are many types of files, and the types of files used in different operating systems are also different. Although the function may be the same, the format of different file types varies by system. The following describes common file types in Linux.
System Files
File Extension
Description
. Conf
A configuration file. The configuration file sometimes uses. cfg
. Lock
Lock file, used to determine whether a program or device is in use
. Rpm
Package Manager file used by RedHat to install software
Programming and script files
File Extension
Description
. C
Source code file of C Programming Language
. Cpp
C ++ source code file
. H
Header files in C or C ++ programming languages
. O
Program object file
. Pl
Perl script
. Py
Python script
. So
Library files
. Sh
Shell script
. Java
Java program source code file
. Lcss
Intermediate code file compiled by Java program source code
. Tcl
TCL script
Common media files
File Extension
Description
. Au
Audio files
. Gif
GIF image files
. Swf
Flash Animation files
. Html/htm
HTML file
. Xml
XML file
. Bmp
Bitmap files
. Jpg
JPEG Image File
. Pdf
The electronic image of the Document; PDF represents Portable Document Format (Portable Document Format)
. Png
Portable Network Graphic (Portable Network Graphics)
. Ps
PostScript files, formatted for Printing
. Wav
Audio files
. Xpm
Image files
Conclusion
File extensions are not always used completely or consistently. What if a file does not have an extension or does not match the extension? In this case, the file command will be helpful. For example, if you find a file named ins in the/root directory without an extension, you can use the file command to determine the file type, for example:
# File/root/ins
The command format is file + file path + file name.