Linxu file types and extensions

Source: Internet
Author: User

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

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.