Linux System Management two file types

Source: Internet
Author: User

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

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.