Last active
February 28, 2018 17:44
-
-
Save pm-hwks/cf3b959f5e2db0bbe2c1ecf654979fad to your computer and use it in GitHub Desktop.
[Quickly create lot of small files] Create lot of small files for testing #testing #dummy #generate #test_file #test_data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Quickly create lot of small files | |
# Reference : https://www.heatware.net/linux-unix/create-large-many-number-files-thousands-millions/ | |
# count = file size x no of files | |
dd if=/dev/zero of=masterfile bs=1 count=10000000 | |
#split into 10 bytes files with filename length 15 | |
split -b 10 -a 15 masterfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment