mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 04:58:52 +00:00
Update cheatsheets
This commit is contained in:
26
yes
Normal file
26
yes
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
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/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 ''`
|
||||
Reference in New Issue
Block a user