wc - count words lines and bytes - Video Man Pages @DistroTube
wc - count words lines and bytes - Video Man Pages  @DistroTube
Uploaded March 2026 | Updated November 2026, 4 days ago
The 'wc' command counts the number of lines, words or bytes in a file.

- Count lines (-l) in a file:
wc -l path/to/file

- Count words (-w) in a file:
wc -w path/to/file

- Count bytes in a file:
wc -c path/to/file

- Count characters (-m) in a file, taking multi-byte characters into account:
wc -m path/to/file

- Count lines, words, and bytes in a file:
wc path/to/file

- Count lines, words, and bytes from stdin:
cat path/to/file | wc
NOTE This is NOT a "useless use of cat" since the output is slightly different than 'wc file'.

- Get character length of the longest line in a file:
wc -L path/to/file

REFERENCED:
β–Ί gitlab.com/dwt1/vidman - Video Man Pages

WANT TO SUPPORT THE CHANNEL?
πŸ’° Patreon: patreon.com/distrotube
πŸ’³ Paypal: paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
πŸ›οΈ Amazon: amzn.to/2RotFFi
πŸ‘• Teespring: teespring.com/stores/distrotube

DT ON THE WEB:
πŸ•ΈοΈ Website: http://distro.tube
πŸ“ GitLab: gitlab.com/dwt1
πŸ—¨οΈ Mastodon: fosstodon.org/@distrotube
πŸ‘« Reddit: reddit.com/r/DistroTube
πŸ“½οΈ Odysee: odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
🌐 Brave Browser - brave.com
πŸ“½οΈ Open Broadcaster Software: obsproject.com
🎬 Kdenlive: kdenlive.org
🎨 GIMP: gimp.org
πŸ’» VirtualBox: virtualbox.org
πŸ—’οΈ Doom Emacs: github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys!
wc - count words lines and bytes - Video Man PagesA StormOS Live StreamChat With Patrons (Aug 31, 2025)Linux...So Much Has Changed In The Last 20 YearsHow To Become A Computer Power User (In 5 Steps!)A Quick Look At Gnoppix A IFree Software Is About Freedom...Not Cost!Blender As A Video Editor? Its Actually Really Good!Modicia OS Is Linux For Multimedia Power UsersSolutions For The Political Division Within The Linux CommunityNo, Im Not Shocked Firefox Keeps Screwing Up!mv - move files and directories - Video Man Pages
DistroTube |

'wc' - count words lines and bytes - Video Man Pages

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER