Linux System file attribute knowledge explained

Source: Internet
Author: User

File types in Linux

In a Linux system, you can say that everything is file


The role of extensions under Linux

1). Tar,. tar.gz,. tgz,. zip,. tar.bz represent compressed files, and create commands typically tar, zip, gzip, and so on

2). SH represents a shell script file, a program developed through the shell language

3). pl represents Perl language files, programs developed in Perl language

4). py represents Python language files, programs developed in Python language

5). html,. htm,. php,. JSP,. Do represent web language files

6). conf represents the configuration file for the system service

7). RPM indicates RPM installation package file

Operational development language: Shell, Python, PHP, one of the three, at least one, preferably two.


Linux System file attribute knowledge explained


Case:

391699-rw-r--r--. 1 root root 0 Jan 22:41 Oldboy


First column: 391699 is Indoe, index node Indoe

Second column:-rw-r--r--. Front "-" for normal file (file or directory type), R (4) Read permission, W (2) Write permission, X (1) Execute permission, "W-r" belongs to the master permission, "r--" attribution Group permission, "r--" other person's rights

-: Normal file

L: Soft link, equivalent to Windows shortcut

D: directory, folder equivalent to Windows

B: Block device, hard disk is an example

C: Character device file, to you say you do not understand, mouse, keyboard is considered

S, p: These files are related to the system's data structure and piping (pipe), often rarely seen

Third column: 1 is the number of hard links

Fourth column: Root indicates the owner of the user

Fifth Column: Root represents the attribution group of the user group

Sixth Column: 0 indicates the size of the file or directory

Column seventh, eighth, column Nineth: Jan 14 22:41 Indicates the date of the most recent change to a file or directory

Tenth column: Oldboy represents the name of a file or directory


Type of-type under the Find command

-type: Finding a document of a type

B: Block Device documentation

D: Catalogue

C: Character device documentation

P: Piping Documentation

L: Symbolic Link document

F: General Documentation


Index node Indoe

Indoe Overview:

The hard disk is partitioned and then formatted to create the file system.

The hard disk is divided into two parts: the first part Indoe node; the second part block

Block is used to store the actual data, such as photos, video and other ordinary file data, and Indoe is used to store these data attribute information, Indoe contains the property information including file size, owner, attribution Group of user groups, read and Write permissions, file type, modification time, It also contains the pointer function for the specified file entity (the Indoe node ———— block), etc., but does not contain the file name


This article is from "Xiao Yang" blog, please be sure to keep this source http://aqiang.blog.51cto.com/6086626/1892066

Linux System file attribute knowledge explained

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.