Create an empty file

Creating an empty file can be useful when having to test quotas, create a container for an encrypted file system, or otherwise.

Commands

fallocate -l 1G testfile

Create an 1 gigabyte empty file on Linux.



What do you think, was this useful?

Yes!

Share with friends:
Share on Twitter