Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做这个。创建10000个文件,(文件名可以是时间和随机数的组合)。文件大小应为 4k。我想计时。说需要多少秒。
我怎样才能在 bash 上做到这一点?
谢谢你。
time for x in {1..10000}; do dd if=/dev/zero ibs=4k count=1 of=$x.txt 2>/dev/null done