how to truncate a large (8 GB) file

Hello,

I need to truncate a large file without deleting and touching it again.

i tried the below commands but no use because of the huge file size

cat <<! > errors
and
echo > errors

Could someone please help.

Thanks,
Sateesh

cp /dev/null largefile
cat /dev/null > largefile