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

true

Return success exit code (0)

Syntax

true

Common Options

--helpShow help
--versionShow version

Common Examples

true

Return success (exit 0)

true && echo "success"

Conditional execution

while true; do echo "loop"; sleep 1; done

Infinite loop

command || true

Ignore command failure

if true; then echo "yes"; fi

Conditional check

: > file.txt

Empty file (colon = true)

Related Commands

Related Tools

More Code & Dev Tools