what command is used to remove the all text of the particular file.

Hi all...

I want to delete the entire text of the file and want to make it zero byte..
would you please tell me the command for it.

Thanks and regards
Vijay sahu

cat < /dev/null > File_name.txt
: > file

You can use only de redirection of stdout:
$echo "hello" >file;ls -l file
-rw-r--r-- 1 chip chip 6 2009-08-12 11:53 file
$>file
$ls -l file
-rw-r--r-- 1 chip chip 0 2009-08-12 11:53 file

Hi all

Thanks for your reply all three are working properly...