Results 1 to 6 of 6
Thread: Splitting abig tar.gz file
-
02-16-2005, 02:03 PM #1Web Hosting Master
- Join Date
- May 2003
- Posts
- 852
Splitting abig tar.gz file
Hi
how can we split a big tar.gz file into small files using SSH ??
-
02-16-2005, 03:10 PM #2Web Hosting Master
- Join Date
- Jun 2003
- Posts
- 976
man split
NAME
split - split a file into pieces
SYNOPSIS
split [OPTION] [INPUT [PREFIX]]
-
02-17-2005, 01:21 PM #3Web Hosting Master
- Join Date
- May 2003
- Posts
- 852
I didn't understand !
-
02-17-2005, 02:11 PM #4Web Hosting Master
- Join Date
- Jun 2003
- Posts
- 976
lets say you have a file called "big_file"
and its 10mb, you want to split it in chunks of 1mb and
the files should have the prefix "big_file-", so you run
Code:split -b 1m big_file big_file-
-
02-17-2005, 05:05 PM #5Web Hosting Master
- Join Date
- May 2003
- Posts
- 852
yha thanks
but how can I regain them (return them into one original file)
?
-
02-17-2005, 06:48 PM #6Web Hosting Master
- Join Date
- Jun 2003
- Posts
- 976
maybe with
Code:cat big_file-* > big_file