Date: Sun, 26 Jun 2005 12:02:45 +1200 From: Jonathan Chen <jonc@chen.org.nz> To: Svein Halvor Halvorsen <svein-freebsd-questions@theloosingend.net> Cc: questions@freebsd.org Subject: Re: Chop off end of file Message-ID: <20050626000245.GC38082@osiris.chen.org.nz> In-Reply-To: <20050626015255.D15610@maren.thelosingend.net> References: <20050626015255.D15610@maren.thelosingend.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 26, 2005 at 01:57:33AM +0200, Svein Halvor Halvorsen wrote: > > I have a ~70GB, of which the last ~50GB is garbage. I know exactly at what > byte I want to cut the file, but I do not have enough free diskspace to do > a > > dd if=orig of=pre bs=... count=.... > > > Is it possible to just chop off the end of a file, without making a copy > of its beginning? truncate(1) is your friend. -- Jonathan Chen | To do is to be -- Nietzsche <jonc@chen.org.nz> | To be is to do -- Sartre | Scooby do be do -- Scooby
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050626000245.GC38082>