wc的作用:显示每一个文件的行数(line)、单词数(word)和字节数(byte)
选项: -l:显示行数 -w:显示单词数 -c:显示字节数
示例:
[[email protected] ~]# wc /etc/issue 3 9 47 /etc/issue [[email protected] ~]#
[[email protected] ~]# wc -l /etc/issue 3 /etc/issue [[email protected] ~]# wc -w /etc/issue 9 /etc/issue [[email protected] ~]# wc -c /etc/issue 47 /etc/issue [[email protected] ~]#
时间: 2024-11-15 19:06:25