File type summary documentation for Linux

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.