Generate dummy files in bash

后端 未结 8 906
面向向阳花
面向向阳花 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 17:45

    Easy way:

    make file test and put one line "test"

    Then execute:

     cat test >> test
    

    ctrl+c after a minute will result in plenty of gigabytes :)

提交回复
热议问题