[clug] Cut a file in place.

Alastair D'Silva alastair at d-silva.org
Tue Sep 17 01:05:06 UTC 2019

On Tue, 2019-09-17 at 09:31 +1000, Andrew Janke via linux wrote:
> Hi all,
> Let's say I have a 26GB compressed archive and 17GB of spare disk
> space and
> want to cut it up into chunks. The internet says no, but this list
> typically doesn't fail me.
> Chop a bit off the front and then use truncate the file?  Seems a
> risky way
> but the option that I'll have?
> a

Is the archive something you can recreate? If so, remove and recreate
it with something like:

tar jcvf - /some/dir | split -b 1M - outfile.

Alastair D'Silva           mob: 0423 762 819
skype: alastair_dsilva    
Twitter: @EvilDeece
blog: http://alastair.d-silva.org

More information about the linux mailing list