1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:42:08 +02:00
tldr/pages/common/yes.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

510 B

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 "message":

yes {{message}}

  • Repeatedly output "y":

yes

  • 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 ''