fallocate -l 10G bigfile
truncate -s 10G bigfile
dd of=bigfile bs=1 seek=10G count=0

文件系统对于这样创建的文件有特殊处理,叫稀疏文件,现在创建大文件光速了,再也不用纠结等半天了。

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-11-30
  • 2021-11-30
  • 2021-12-24
  • 2022-01-16
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2021-12-26
  • 2021-11-24
  • 2021-12-14
  • 2022-12-23
相关资源
相似解决方案