This article records the Linux file types
I. Types of files
1, ordinary files, regular file, "-": such as data files, executable files, etc.
2. catalog files, directory file, "D": the Essence of the directory in Linux is the file, path map, which includes all the file name and location in the partition
3, block equipment files, blocks special file, "B": a buffer to provide a fixed size unit read and write device files, such as hard disk equipment (/DEV/SDA) and hard disk partition (/DEV/HDA1)
4, character device files, character special file, "C": This type of file provides a non-cached variable-length unit read and write, a device if not a block device, is a character device
5. Named pipe file, FIFO or named pipe, "p": file for inter-process communication between systems
6. Socket files, socket file, "s": files that communicate over the network
7. Symbolic link file, Symbolic link, "l"
Ii. File name extensions
1. *. sh:bash script File
2, *.tar, *.tar.gz, *.zip, *.tgz: various compressed file formats
3. *.html,*.php,*.jsp: Web File
Summary: A file name extension on a Linux system is only intended to indicate the purpose of the file and is easy for administrators to identify
Third, the relevant supplement:
1. View related commands for file types, including LS, stat, file, etc.
2. Magic number
This article from "Tornado" blog, declined reprint!
Linux System Management two file types