How can I create an empty file from the command line?
|
feedback
|
|
Use the
Example:
| |||
|
feedback
|
Will also create an empty file. If the file does already exist, it will be truncated (emptied). To keep the file contents, use
Even if the file exists, the contents will be untouched. | |||||||||
feedback
|
the exact way there is also another way
The difference is file1.ext will be zero bytes and file2.ext would be one byte. You can check this by
| |||||
feedback
|
|
Using Any Text editor you can also create an empty file.
Then save
| |||
|
feedback
|
