win The file type is distinguished by the extension (Jpg,jpeg,png,gif/doc,txt,pdf/avi,wmv,mp4)
Linux file type and or extension not associated in
Linuxthe file type
Linux all documents in:
f (-) Regular file Normal file
Common file types:
1. Plain text file (ASCII encoding)
2. binary (binary) files
3. file in data class format
Lastlog Command Display Results
D Directory Catalog Files
L Symbolic Link soft connection file; Soft link similar to win under the shortcut, pointing to the file of the entity
#ln-S/etc/passwd/root/test0511/passwd.link
lrwxrwxrwx. 1 root root 5 month 01:02 Passwd.link-/etc/passwd
s Socket files, communication with interprocess communication, such as MySQL database
B Block (buffered) spercial block file (optical drive, hard drive)
# ll/dev/|grep ' ^b '
BRW-RW----1 root disk 253, 0 5 month dm-0
BRW-RW----1 root disk 253, 1 5 month Dm-1
C character character file, general serial port type of device for character file
Mknod Oldboy C 5 1 Create a character file
p Named pipe (FIFO) pipeline files (rarely used)
To view file types:
1 )
# FILE/BIN/CP
/bin/cp:elf 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for Gnu/linux 2.6.32, BUILDID[SHA1]=0X930BA1B99A27112A3CE696993EE8B38556235DF2, stripped
2 )
# FILE/ETC/PASSWD
/etc/passwd:ascii text
3 )
# file/dev/dm-0
/DEV/DM-0: Block Special
Linuxunder the extension:
1. Source:. tar/.tar.gz/.tgz/.zip/.tar.bz
2. script file:. SH Shell Language Development program
3.perl script:. PL
4.python script:. PY
5. Web Language file:. html/.htm/.php/.jsp/.do
6. configuration file for system service:. conf
7.rpm Install package:. RPM
File type summary documentation for Linux