-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux yes Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to yes on Linux, covering Arch Linux, CachyOS, and other distributions including automatic yes responses, infinite output, and command automation.
Basic usage:
# Output "y" repeatedly
yes
# Outputs "y" foreverInterrupt:
# Press Ctrl+C to stop
yes
# Ctrl+C interruptsAuto-confirm:
# Auto-confirm prompts
yes | command
# Automatically answers "y" to promptsWarning:
# ⚠️ DANGEROUS!
yes | rm -i *
# Automatically confirms all deletions!
# Use with extreme cautionCustom output:
# Custom message
yes "Hello World"
# Outputs "Hello World" repeatedlyPhrase output:
# Multiple words
yes "This is a test"
# Outputs phrase repeatedlyEndless stream:
# Infinite output
yes
# Creates endless stream of "y"Head to limit:
# Limit output
yes | head -10
# Shows first 10 linesCheck installation:
# yes is part of coreutils
# Usually pre-installed
# Check yes
which yesThis guide covered yes usage, automatic responses, and command automation for Arch Linux, CachyOS, and other distributions.
- Bash Scripting Guide - Scripting basics
- xargs Guide - Command building
-
yes Documentation:
man yes
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.