DIGIT-ARC read-only archive · snapshot: July 23, 2026

File splitting in Linux

4 posts · originally from https://geek.digit.in/community/threads/file-splitting-in-linux.32293/

V
vinayasurya Original post #1
Jul 19, 2006 at 6:04 PM
Any utilities for splitting files in linux?
JGuru
JGuru #2
Jul 19, 2006 at 7:39 PM
Open the Terminal Window & type:
$ split --help
By default it splits every 1000 lines. You can use the '-l' option and try other options.
Choose one which suits your needs.

Similarly for joining files use the 'cat' command, for eg.,
$ cat Sample1.txt Examples.txt Codes.txt >> AllJoined.txt

Now open the file called 'Alljoined.txt' , it will contain the contents of all the three files
Sample1.txt, Examples.txt, Codes.txt!!
V
Jul 20, 2006 at 9:29 PM
I want to split large images like iso especially dvd images so i can carry in one or more cds. does this utilities works for them, especially for large files.
JGuru
JGuru #4
Jul 20, 2006 at 9:44 PM
Yes, ofcourse it will work with any file format. If you want to split a large ISO image (DVD)
format, then calculate how many lines it contains. Suppose there are N number of
lines and you want to split the file into 3 files (ie., N/3). Then you have to specify the
value of N in the options. For eg.,
split --lines=6000
There are very good file splitting & joining software available for Windows.
Try 'File Splitter Deluxe' for splitting & joining large files.
Get it from here: *www.softdd.com/filesplt/index.htm
You better use the above software. If you use Linux tools, then you must be thorough with it.
It's not recomended for beginners to use these command-line tools.