Linux large file splitting split command

  
                  

linux split command

Description: Cut the file.

Syntax: split [--help][--version][-<number of lines>][-b <bytes>][-C <bytes>][- l <Number of lines>][File to be cut][Output file name]

Supplement: split can cut the file into smaller files, and the default is to cut a small file every 1000 lines. .

Parameters:

-<Number of lines> or -l<Number of lines> Specify how many lines to cut into a small file.

-b<Bytes> Specify how many words to cut into a small file. Supported by: m,k

-C<Bytes> Similar to the -b parameter, but try to maintain the integrity of each line when cutting.

--help Show help.

--version Displays version information.

[Output File Name] Set the pre-file name of the file after cutting, and split will automatically add the number after the pre-file name.

Example:

split -b 100m filename

Copyright © Windows knowledge All Rights Reserved