Create an empty file (zero bytes)
To create an empty file, use the touch command, which changes the type stamp of a file, but creates a zero-byte file if the argument is a non-existent file.
[nuy@Lion samp]$ ls -l 合計 0 ↑There are no files in the directory [nuy@Lion samp]$ touch empty_test ↑Create an empty file with the touch command [nuy@Lion samp]$ ls -l 合計 0 -rw-r--r-- 1 nuy nuy 0 Sep 20 06:00 empty_test ↑The empty_test file created is 0 bytes |