wc命令:
wc [OPTION]... [FILE]...
-l: lines統(tǒng)計行數(shù)
[root@ansible ~]# wc -l /etc/passwd
23 /etc/passwd
-w: words統(tǒng)計單詞數(shù)
[root@ansible ~]# wc -w /etc/passwd
43 /etc/passwd
-c: characters
[root@ansible ~]# wc -c /etc/passwd
1087 /etc/passwd