Mike Frysinger wrote:
> On Monday 25 January 2010 12:22:09 Peng Yu wrote:
>> 'touch' will not make the file size empty if the file is not empty. I
>> don't not want to use 'rm -f' first then touch because I might
>> accidentally remove something if I type anything wrong. Could somebody
>> let me a better way to create an empty file?
>
>>file

Right.
Note however, that for some shells you have to provide a command
before the ">", so you may prefer this:

  : > file


Reply via email to