How can a large file, say 1GB, for some testing purposes be created?
Use the following command :
dd if=/dev/zero of= filename bs=1024 count=1024number of 0’s
Replace ‘filename’ with the actual filename.
Replace ‘number of 0’s’ with the required number of 0’s
One ‘0’ for 10MB , two for 100 MB and so on..
For the above scenario (file of size 1GB), use the following command :
dd if=/dev/zero of=file.test bs=1024 count=1024000