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
Managor c55047ad89
yes: add example (#12239)
* yes: add example

---------

Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com>
2024-02-12 14:53:37 +05:30

21 lines
477 B
Markdown

# 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>.
- 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 ''`