How to count characters in file in openSUSE Linux using terminal

Written by Administrator on Saturday April 11, 2020

Linux command line is very powerful tool even for string and character operations without installing any third-party applications.

To count number of characters in some file, containing text, you can use wc command with -m parameter using following scheme:

$ wc -m <file_name>

Examples:

$ wc -m nata-ubuntu-settings 
21 nata-ubuntu-settings

$ wc -m it-slang-v-rustine 
1019 it-slang-v-rustine

$ wc -m rongta-files-installation 
389 rongta-files-installation

Category: linux Tags: opensuse wc word_count