Create 50000 new subdirectories
A script that creates 50000 subdirectories under a directory to test performance, such as whether EXT4 is converted successfully, because EXT4 supports unlimited subdirectories.
The script is as follows:
#! / bin/bash
I, 1
While [$I-le 50000]
Do
If [- d / student]; then
Mkdir / student/student$i
Chmod 754 / student/student$i
ITunes $(($item1))
Else
Mkdir / student
Mkdir / student/student$i
Chmod 754 / student/student
ITunes $(($item1))
Fi
Done