Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vacri
on Oct 12, 2017
|
parent
|
context
|
favorite
| on:
A Little Story About the `yes` Unix Command
The
yes
command will repeat whatever string you give it, so it's useful for load/traffic testing. Speed helps this particular use-case.
loeg
on Oct 12, 2017
[–]
That's a possible secondary use, but not really what the command is for.
Why not just use /dev/zero or /dev/urandom for generating load?
vacri
on Oct 12, 2017
|
parent
|
next
[–]
Because the
yes
command will repeat whatever string you give it. If you need to parse the incoming load in a certain way, /dev/{zero,urandom} won't be suitable.
azernik
on Oct 12, 2017
|
parent
|
prev
[–]
yes will repeat arbitrary data (including binary).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: