Command line: Say yes to every question

October 30, 2011

If you install or initialize a program that often asks for your opinion, you can automate the process by answering always yes with this little command:

yes | command

Example:

sudo su
yes | sensors-detect