MacOS – How to Use Split in Terminal to Split Files to Another Directory

macosterminal

How do I use the OS X Terminal command split to split a file into several pieces, and store them in a different folder, on a different drive?

The reason is that I need to move files to a FAT32 store, but they are too large for the FAT32 4 GB file size constraint.

Also, I don't have enough space left on my HFS+ drive to split it there, and then move it.

Any ideas?

Best Answer

If Mac OS X's split acts just like the GNU Coreutils split, cd to the directory you wish the split files to reside in and then run the following command:

split -b <size> /location/of/big/file
Related Question