How to delete the contents of a file in unix code example
Example 1: bash command to empty textfile
: > file.log
Example 2: how to clear a file in linux
# Just cd To the Correct Path, and Type the Following:
> filename
: > file.log
# Just cd To the Correct Path, and Type the Following:
> filename