Install Wc On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install wc
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick to copy
Count words, bytes, or lines.
How to use wc?
Below are few example commands for wc that you can use in the terminal.
Count lines in file:wc -l fileClick to copyCount words in file:wc -w fileClick to copyCount characters (bytes) in file:wc -c fileClick to copyCount characters in file (taking multi-byte character sets into account):wc -m fileClick to copy
To install the latest version of wc in your favorite operating system just copy the wc installation command from above and paste it into terminal. It will download and install the latest version of wc 2026 package in your OS.




