如何创建一个新文件并用 1 GB 的随机数据填充它?我需要这个来测试一些软件。
我更喜欢使用/dev/randomor /dev/urandom。
/dev/random
/dev/urandom
random
random ×1