Answers for "linux empty file"

1

how to empty a file in linux

echo > filename.log

#empty all file with the same extension
echo > *.log
Posted by: Guest on September-23-2021
4

bash command to empty textfile

: > file.log
Posted by: Guest on November-17-2019
-1

linux empty file

echo -n > myfile.txt
Posted by: Guest on April-19-2021
1

how to clear a file in linux

# Just cd To the Correct Path, and Type the Following:
> filename
Posted by: Guest on July-05-2020
0

bash clear file

> filename
Posted by: Guest on May-07-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language