tldr/pages/common/yes.md

18 lines
387 B
Markdown
Raw Permalink Normal View History

2014-06-12 00:20:12 +01:00
# 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/yes>.
2014-06-12 00:20:12 +01:00
- Repeatedly output "message":
2014-06-12 00:20:12 +01:00
`yes {{message}}`
- Repeatedly output "y":
2014-06-12 00:20:12 +01:00
`yes`
- Accept everything prompted by the `apt-get` command:
`yes | sudo apt-get install {{program}}`