Let's say you need to create 10 files with 100kB size. All you need to do is create a 1MB files and split it into 10 files.
$ dd if=/dev/zero of=myfile bs=1024 count=1024where if is input file, of is output file, bs is byte size and count is the multipler of bs
$ ls -lh
-rw-rw-r--. 1 owner owner 1.0M Jul 28 15:33 myfile
and then
$ split -b 100k myfile xwhere -b is byte size, myfile is your file input name and x is your prefix.
$ ls -lh
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xaa
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xab
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xac
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xad
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xae
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xaf
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xag
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xah
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xai
-rw-rw-r--. 1 owner owner 100K Jul 28 15:35 xaj
-rw-rw-r--. 1 owner owner 24K Jul 28 15:35 xak