News for hackers. Stuff that matters.
Re:A little story about the `yes` Unix command by giuscri on Thursday July 21, 2022 @05:40AM (#32177358)
`cat /dev/urandom > /tmp/myfile` is faster on macos though
Re:A little story about the `yes` Unix command by nacs on Thursday July 21, 2022 @11:44AM (#32180745)
`yes` is far faster on my Linux (2.2GB/s) vs /dev/urandom (0.38GB/s) -- not surprising since the `man` page for urandom says:

"[urandom] is designed for security, not speed, and is poorly suited to generating large amounts of random data"

`cat /dev/zero` is pretty much as fast as `yes` on my system however (2.1GB/s)

Re:A little story about the `yes` Unix command by tombert on Thursday July 21, 2022 @07:24AM (#32178059)
I suspect that just doing a `truncate` command is probably even faster. I just like the `yes` version because it requires basically zero thought on my end.