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

seq

Generate number sequences

Syntax

seq [OPTION]... LAST | FIRST LAST | FIRST INCREMENT LAST

Common Options

-sSeparator (default newline)
-wEqual width with zero padding
-fPrintf-style format
-tTerminator string

Common Examples

seq 5

Output 1 to 5

seq 3 7

Output 3 to 7

seq 2 2 10

Output 2,4,6,8,10

seq -s, 5

Comma-separated 1 to 5

seq -w 01 10

Equal width 01 to 10

seq -f "%02g" 1 10

Two-digit format output

seq 1 0.5 3

0.5 increment output

seq 10 -1 1

Reverse output 10 to 1

Related Commands

Related Tools

More Code & Dev Tools