Page 1 of 1

cp /dev/null /var/log/messages

Posted: Sat 28 May 2005, 14:21
by achilles
The above command does not work in Puppy.
It does so in other distros eg Debian.

The error message "cp: unable to remove 'messages': Success"
results. I don't wish to remove the file, merely its contents.

Any ideas why, please?

Posted: Sat 28 May 2005, 14:33
by GuestToo
try > /var/log/messages ... it might work