cp /dev/null /var/log/messages

Booting, installing, newbie
Post Reply
Message
Author
achilles
Posts: 5
Joined: Mon 16 May 2005, 16:27

cp /dev/null /var/log/messages

#1 Post 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?

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

try > /var/log/messages ... it might work

Post Reply