Spiga

Remove only file content

To remove the content of a file without deleting the file, type:

cat > filename.txt
Now press the Enter Key and type Ctrl+D. This way only the file contents will be removed.



Related Posts by Categories



Widget by Hoctro | Jack Book

0 comments: