Linux experiments studying and testing different representations of file size units (G/M/K/k) in Linux systems
发布时间
阅读量:
阅读量
Linux系统中关于单位转换的小型实验
1M等于1024K/k
1G等于1024M
K/k的大小写形式均可使用
而M/G则必须采用大写形式
在测试过程中,采用dd命令进行验证
执行dd --help命令后可查看相关信息
N和BYTES参数后可附加以下乘法后缀:
c =1, w =2, b =512, kB =1000, K =1024, MB =1000 _ 1000, M =1024 _ 1024, xM =M
GB =1000 _ 1000 _ 1000, G =1024 _ 1024 _ 1024,以此类推适用于T、P、E、Z、Y等单位。
[root@wql ~]# dd if=/dev/zero of=1024M bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 5.78752 s, 186 MB/s
[root@wql ~]# dd if=/dev/zero of=1000M bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) c
全部评论 (0)
还没有任何评论哟~
