2014-06-12 00:20:12 +01:00
|
|
|
# yes
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Output something repeatedly.
|
2020-10-15 14:37:04 +01:00
|
|
|
> This command is commonly used to answer yes to every prompt by install commands (such as apt-get).
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/yes>.
|
2014-06-12 00:20:12 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Repeatedly output "message":
|
2014-06-12 00:20:12 +01:00
|
|
|
|
|
|
|
`yes {{message}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Repeatedly output "y":
|
2014-06-12 00:20:12 +01:00
|
|
|
|
|
|
|
`yes`
|
2020-10-15 14:37:04 +01:00
|
|
|
|
|
|
|
- Accept everything prompted by the `apt-get` command:
|
|
|
|
|
|
|
|
`yes | sudo apt-get install {{program}}`
|