tldr/pages.fr/linux/yes.md

17 lines
454 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# yes
> Envoie un message à répétition en sortie console.
> Cette commande est souvent utilisée pour éviter de devoir accepter des opérations successives (par exemple des installations via la commande `apt-get`).
- Envoyer « message » à répétition :
`yes {{message}}`
- Envoyer « y » à répétition :
`yes`
- Répondre « oui » à toutes les questions posées par la commande `apt-get` :
`yes | sudo apt-get install {{program}}`