How much do you know about block in Linux operations Basics ? Let's take a brief look at it today.
1. how does block come from?
It was created when the file system was formatted.
2. What does block mean?
Where the data is actually stored
3. What are the characteristicsofblock ?
1) Storage of data
2)block size default 4KB (CentOS 6.x)
3) file is larger, need to use multiple blocks, when the file is relatively small (1KB) the remaining space will be wasted.
4, how to view?
Usage of block in #查看 system ===== usage of disk space
[Email protected] ~]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 8.8G 1.5G 6.9G 18%/
Tmpfs 931M 0 931M 0%/dev/shm
/DEV/SDA1 190M 40M 141M 22%/boot
Number of Inode
[[email protected] ~]# #grep filter is case insensitive
[Email protected] ~]# Dumpe2fs/dev/sda3 |grep-i "inode size"
DUMPE2FS 1.41.12 (17-may-2010)
Inode size:256
The above is today's share, I hope to have the necessary friends to help.
The file attributes of Linux operations Learning block analysis