mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
611 B
Plaintext
27 lines
611 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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/manual/html_node/yes-invocation.html>.
|
|
|
|
- Repeatedly output `y`:
|
|
|
|
`yes`
|
|
|
|
- Repeatedly output a specified value:
|
|
|
|
`yes {{value}}`
|
|
|
|
- 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 ''`
|