DigitalDilemma@lemmy.mltoLinux@lemmy.ml•Which Linux tool or command is surprisingly simple, powerful, and yet underrated?"English
4·
4 days agoI… did not know that. Thanks, TIL!
I… did not know that. Thanks, TIL!
Absolutely, but when you do need it, it’s brilliant.
Sorry, I should have explained that. it’s command | yes yes|command
- Eg, yes|apt-get update
(Not a great example since apt-get has -y, but sometimes that fails when prompting for new keys to accept)
Edit: I got it backwards, thanks @[email protected] for the correction.
yes
The most positive command you’ll ever use.
Run it normally and it just spams ‘y’ from the keyboard. But when one of the commands above is piped to it, then it will respond with ‘y’. Not every command has a true -y to automate acceptance of prompts and that’s what this is for.
You stole my design!
So I did - thanks for the correction, edited.