Linux: how to split a big file into smaller files (and join them again)

Image for post
Image for post
Photo by Glen Carrie on Unsplash

Its very annoying when you try upload archive files into a server, many times there is an upload limit and then you need to split your archive into smaller files.

To do this you can use the split command which comes with most Linux distros


As you can see the maximum file size for each part is 45M and the original file still exists.


  • b: is used to specify the size of each part
  • “logs.tbz.part” is the prefix of each part file created after splitting.

To use the files we need to join them again to a single file, to do this:

Written by

DevOps engineer, loves Linux, Python, cats and Amiga computers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store