Linux Basic Command Introduction

Source: Internet
Author: User

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/84/30/wKiom1eIKRbwBpBBAAA40HHYw4M727.png-wh_500x0-wm_3 -wmp_4-s_3657542903.png "title=" 2.png "alt=" Wkiom1eikrbwbpbbaaa40hhyw4m727.png-wh_50 "/>

Total Amount: 7600 is the number of bytes that are listed by LS for the ingress occupied space

1 indicates the number of hard links for the file

Root indicates the owner

The second root indicates that the file belongs to a group (usually the default value of the owner of the file)

1037 indicates file length, not K-byte

To view the space occupied by a file, you can use the du command


If your file system's IO block size is 4096 Bytes.

The meaning of the file system is the smallest read-write and allocation unit, each read and write operation you can not be smaller than this size. Even if your file is only one byte. And the file is stored on the hard disk in this unit, that is, if the file size is smaller than this value, then it occupies 4096 bytes of space on the disk.

The specific algorithm that occupies space is: (into one (file size/4096)) x4096. According to this you can calculate the space usage of the file in the example you enumerated: 34890 divided by 4096, approximately equal to 8.5, into a method of 9, that is, the file occupies 9 blocks on disk, each block is 4K, so the space occupied by these two files is 36K.

This rule is also appropriate for the directory, but does not appear as a 0 directory, even if the empty directory



Linux Basic Command Introduction

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.