Generate dummy files in bash

后端 未结 8 902
面向向阳花
面向向阳花 2021-02-01 17:08

I\'d like to generate dummy files in bash. The content doesn\'t matter, if it was random it would be nice, but all the same byte is also acceptable.

My first attempt was

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-01 18:00

    Possibly

    dd if=/dev/zero of=/dummy10MBfile bs=1M count=10
    

提交回复
热议问题