snippetbashTip
yes — Output something repeatedly. This command is commonly used to answer yes to every prompt by install
Viewed 0 times
yescommandrepeatedlythisclisomethingoutput
Problem
How to use the
yes command: Output something repeatedly. This command is commonly used to answer yes to every prompt by install commands (such as apt-get). More information: <https://www.gnu.org/software/coreutils/manual/html_node/yes-invocation.html>.Solution
yes — Output something repeatedly. This command is commonly used to answer yes to every prompt by install commands (such as apt-get). More information: <https://www.gnu.org/software/coreutils/manual/html_node/yes-invocation.html>.Repeatedly output
y:yesRepeatedly output a specified value:
yes {{value}}Accept everything prompted by the
apt-get command:yes | sudo apt-get install {{program}}Repeatedly output a newline to always accept the default option of a prompt:
yes ''Code Snippets
Repeatedly output `y`
yesRepeatedly output a specified value
yes {{value}}Accept everything prompted by the `apt-get` command
yes | sudo apt-get install {{program}}Repeatedly output a newline to always accept the default option of a prompt
yes ''Context
tldr-pages: common/yes
Revisions (0)
No revisions yet.