Hi,
I'm using Kali linux, I think it's a debian linux ?
I'm trying to create a folder in which there'll be 256 folders, and in each of this folders there will also be 256 folders.
Then in each terminate folders I want to create 4096 files.
It will look like
/dir/aa/aa/aaa.txt,
/dir/aa/aa/aab.txt, and so on.
Problem is when I try to fill the files, I'm using php (which may not be the best idea, but I need some functions such as sha512), so I open a big text file and read it to dispatch every line in its specific file. When I only have the 4096 files (ie. without all the directories before), there's no problem reading and writing, it's going quite fast.
When I try with all the directories, the read/write process takes super long time, like one minute to print one line into a file.
Do I reached the limit of files ? For what I thought, I could create up to 2^32 files in a directory.
Is php struggling ? Will perl or bash be better for that ? If so I need hashing functions that are not in bash.
If you guys have any idea, I'll be glad to hear it.
Thank you in advance