Which Linux command or utility is simple, powerful, and surprisingly unknown to many people or used less often?
This could be a command or a piece of software or an application.
For example I’m surprised to find that many people are unaware of Caddy, a very simple web server that can make setting up a reverse proxy incredibly easy.
Another example is fzf. Many people overlook this, a fast command-line fuzzy finder. It’s versatile for searching files, directories, or even shell history with minimal effort.


yesThe 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.
Also, you can make
yesreturn anything:yes noI… did not know that. Thanks, TIL!
What’s the syntax here? Do I go
I’m not sure if I’ve had a use case for it, but it’s interesting.
Also my favourite way to push a core to 100% CPU
yes > /dev/nulltruedelivers error level 0,falseerror level 1.yes && echo True || echo Falsewill always be True.false && echo True || echo Falsewill always be False.Common usage is for tools that ask for permissions and similiar.
yes | cp -ihas the same effect ascp --force(-i: prompt before overwrites).For some cases I use “|| true”.
The idiom accepts that the preceding command might fail, and that’s OK.
For example, a script where mkdir creates a directory that might already exist.
Sorry, I should have explained that. it’s
command | yesyes|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 @lengau@midwest.social for the correction.