"df" show result based on KB unit.
"stat" using block unit that it can be get from "stat"'s result.
# df -h /efs
Filesystem Size Used Avail Use% Mounted on
/dev/block/mmcblk0p16 12M 712K 11M 6% /efs
# df /efs
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/block/mmcblk0p16 12016 712 11304 6% /efs
1K-blocks : total block count
12016(KB)/1024 = 11.734
712(KB)
# stat -f /efs
File: "/efs"
ID: d3609fe804970d6b Namelen: 255 Type: ef53
Block Size: 4096 Fundamental block size: 4096
Blocks: Total: 3004 Free: 2826 Available: 2826
Inodes: Total: 1024 Free: 865
3004(block)*4096/1024/1024 = 11.734 (MB)
2826(block)*4096/1024/1024 = 11.039 (MB)
# stat /efs
File: `/efs'
Size: 4096 Blocks: 8 IO Blocks: 4096 directory
Device: b310h/45840d Inode: 2 Links: 30
Access: (771/drwxrwx--x) Uid: (1001/ radio) Gid: (1000/ system)
Access: 1970-01-01 09:00:00.000000000
Modify: 2017-02-23 16:21:52.854108236
Change: 2010-01-14 09:44:10.559999995
additinal keywords : 단위, 사이즈, 크기, 용량, capacity
'Programming > Linux Tip' 카테고리의 다른 글
loop device and losetup (0) | 2018.10.29 |
---|---|
linux partitions (sda, sda1, sda2...) (0) | 2018.10.29 |
Can't access samba directory by windows after installing wine (0) | 2017.03.04 |
ps command PC meaning, ps 명령어 의미 (0) | 2016.12.14 |
linux command tip - double redirection(꺽쇠) ">>" (0) | 2016.12.02 |