bookmark

command line - How to create a file with a given size in Linux? - Stack Overflow


Description

truncate -s 10G foo fallocate -l 5G bar

It needs to be stated that truncate on a file system supporting sparse files will create a sparse file and fallocate will not

Preview

Tags

Users

  • @jil

Comments and Reviews