1) in Windows, the file type is distinguished by the extension name.
2) There is no relationship between the file extension and the file type in Linux.
3) in order to easily differentiate and be compatible with the user's habit of using Windows, we also use extensions to differentiate between file types.
In a Linux system, everything can be said to be files.
File types include ordinary files, directories, character device files, block device files, symbolic link files, etc.
-type C
File is of type C:
B Block (buffered) special
C character (unbuffered) Special
D Directory
P Named pipe (FIFO)
F regular File (-)
l Symbolic link;
s socket
F: For ordinary documents-indication
1) Plain text file (ASCLL): The contents of the file can be read directly to the data, for example: letters, numbers, etc. You can view content directly with Cat
2) binary (binary): the executable (command) in Linux is in this format.
3) Data format file: Some programs read files in certain formats while they are running, and those specific format files are called data files.
D: The catalog file is denoted by D
B:block, block devices, hard drives, optical drives
C: Character file: Serial device (USB) Cat
L:symbolic link Symbolic link \ Soft Connect, equivalent to a shortcut to Windows.
S: Set of interface files, communication between processes will be used
P: Pipeline File
This article from "My Blog" blog, declined reprint!
Linxu file types and extensions