There are
many ways available for making a file empty. Here are few
[root@vx111a
~]# echo "this Is jagadesh" >> sample.txt
[root@vx111a
~]# cat sample.txt
this Is
jagadesh
[root@vx111a
~]# >sample.txt
[root@vx111a
~]# cat sample.txt
[root@vx111a
~]# echo "this Is jagadesh" >> sample.txt
[root@vx111a
~]# :>sample.txt
[root@vx111a
~]# cat sample.txt
[root@vx111a
~]# echo "this Is jagadesh" >> sample.txt
[root@vx111a
~]# echo "">sample.txt
[root@vx111a
~]# cat sample.txt
[root@vx111a
~]#