delete file contents terminal code example
Example 1: delete all files with specific name ubuntu
find -type f -name '*text*' -delete
Example 2: how to clear a file in linux
# Just cd To the Correct Path, and Type the Following:
> filename
find -type f -name '*text*' -delete
# Just cd To the Correct Path, and Type the Following:
> filename