truncate a 2gig file ?

Simon Burton simonb at webone.com.au
Wed Nov 27 15:37:05 EST 2002


I have a 2gig file (leunig's interview thismorning on ABC classic fm)
that i only need the first 700mb of, i haven't the disk space to
dd it, i'm looking to just chop off the last 1.3gig or so.
Any commands to do this? Can clib do this?
Also i have wanted to zero length a file in the past,
ie. just keeping the filename....

thx,

Simon Burton.



More information about the linux mailing list