empty file linux command code example
Example 1: linux empty file
echo -n > myfile.txt
Example 2: how to clear a file in linux
# Just cd To the Correct Path, and Type the Following:
> filename
echo -n > myfile.txt
# Just cd To the Correct Path, and Type the Following:
> filename