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

wc

Count lines, words, and bytes

Syntax

wc [OPTION]... [FILE]...

Common Options

-lCount lines only
-wCount words only
-cCount bytes only
-mCount characters

Common Examples

wc file.txt

Count all

wc -l file.txt

Count lines only

ls | wc -l

Count number of files

Related Commands

Related Tools

More Code & Dev Tools