Linux Tips and Tricks

Linux Tips and Tricks

Split large file into several smaller files


To split large file into several smaller files, you can use split command in linux

$ split –bytes=1m large-file-name output-file-name

you can easily change the output file size by changing the -bytes value. you can use b (bytes), k (kilobytes), m (megabytes)

if you want to split the file by number of lines, then you can use the below command

split -l 100 filename

The above command will split the file with 100 lines……

posted under Uncategorized

Email will not be published

Website example

Your Comment:

Recent Comments