Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

yes

Repeatedly output string until killed

Syntax

yes [STRING]...

Common Options

STRINGString to repeat (default y)
--helpShow help
--versionShow version

Common Examples

yes | rm -r directory/

Auto-confirm deletion

yes y | cp -r src/ dest/

Auto-confirm overwrite copy

yes "test" | head -5

Output 5 lines of test

yes n | apt install pkg

Auto-reject installation

yes "" > /dev/null

CPU benchmark

yes | fsck /dev/sda1

Auto-confirm disk check

Related Commands

Related Tools

More Code & Dev Tools