Hi
I am new to shell scripting.I want to create a batch file which creates a desired number of files with a specific size say 1MB each to consume space.How can i go about it using for loop /any other loop condition using shell script?
Thanks
Hi
I am new to shell scripting.I want to create a batch file which creates a desired number of files with a specific size say 1MB each to consume space.How can i go about it using for loop /any other loop condition using shell script?
Thanks
What have you tried so far?
Not sure what is the purpose of this but below code will work for u
for i in 1 2 3 4 5 6 7 8 9 10
do
dd if=/dev/zero of=file$ bs=1M count=1
done
The purpose is that i want to use up my disk space and create lakhs of files to simulate one customer issue .Issue has huge number of files which are accessed and application hangs somewhere performing one operation.