How delete content file in Linux

| May 23, 2011 | 0 Comments

How to delete contents of a file in unix / linux

#cat > test /*to create a file*/
12345
cntl + d

#cat test /*to display file content*/
12345

#echo > test /*to delete the file contents*/

Tags: ,

Category: Tips for linux

Leave a Reply

You must be logged in to post a comment.