Linux - How to split large file into small files, Breaking large files into small files

How to split large file into small files

A large file can be splitted into small from linux terminal by using split command in linux. Make sure that required packages are installed in the terminal. To Split large file into number of smaller files from linux console, follow the steps below.

To Split the file name example.txt, use split command
 # split example.txt

To Split the file with some name and with required set of lines say 100 lines for each file,then
 split -l 100 example.txt example_split

To Specify the memory size of the splitting file,then go with
 # split -b 20k example.txt segment_split
This can be used in multiple terms like viewing a file when the large files takes loading time for opening and when you want to used csplit and for multiple purpose.

The topic on Linux - How to split large file into small files is posted by - Guru

Hope you have enjoyed, Linux - How to split large file into small filesThanks for your time

Tech Bluff