1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/yes.md

18 lines
387 B
Markdown
Raw Normal View History

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