Create a file of a specific size with random content
Today I tested the log rotation of a Linux server installation and therefore I needed a logfile that was larger than 10 MB. To create such a file of e.g. 11 MB size on the shell, I used this command: dd if=/dev/urandom of=test.log bs=1M count=11 The content of the file is random characters. If you ... Read more