freeCodeCamp/guide/english/bash/bash-wc/index.md

444 B

title
Bash wc

Bash command: wc

wc is used to display newline, byte, word counts of a file.

Usage

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

Here are some helpful options for its use :

  • -c to print the bytes counts.
  • -w to print the word counts.
  • -m to print the character counts.

More Information

  • run man wc to get a list of all options for this command
  • Wikipedia