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
Explains how to increase the maximum number of open files (FD) under Linux operating systems by editing /etc/sysctl.conf and /etc/security/limits.conf file.