I needed a text file of the specified size for testing, so I checked the command to create.
cat /dev/urandom | base64 | head -c 1000000
If this is the case, it will be one line, so I want to insert a line break.
Create a 1MB text file and start a new line by 10 lines.
cat /dev/urandom | base64 | head -c 1000000 | fold -10
mkfile 1m dummy
dd if=/dev/zero of=test bs=1024 count=1024
Recommended Posts