How to create an empty file?

Use file redirection as part of your shell builtins or by using the fallocate command.


fallocate -l 1G testfile

Create a 1 gigabyte test file

Recently updated at May 5, 2023

Do you like this page? Share it with others or help us make it better


Share with friends:
Share on Twitter