Linux - Single command to create multiple test files, Example create x number of test files
Single command to create multiple test files
At time for testing purpose or when we do a study test we might require to create some thousands of files, abut actually we might not have such a testing environment. In linux machine you can achieve this by executing the below simple commands. For this kind of testing or learning purpose you can create a new directory called exam_test. After creating a directory execute the shell script for creating thousands of files.
# mkdir exam_test # cd exam_test
# for i in `seq 1 30000`; do touch examples/$i.txt; doneThis above script will create thirty thousand files. Touch is the command which is used to create files.
The topic on Linux - Single command to create multiple test files is posted by - Math
Hope you have enjoyed, Linux - Single command to create multiple test filesThanks for your time