2025-03-14 21:59:59 -06:00
|
|
|
# yes
|
|
|
|
|
|
|
|
|
|
> Output something repeatedly.
|
2025-12-16 10:20:31 -07:00
|
|
|
> This command is commonly used to answer yes to every prompt by install commands (such as `apt-get`).
|
2025-03-14 21:59:59 -06:00
|
|
|
> 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 ''`
|