wc命令适用于统计指定文本的行数、字数、字节数
wc命令格式为:“wc [参数] 文本”
wc参数-c, --bytes
print the byte counts(字节数)
-m, --chars
print the character counts(字数)
-l, --lines
print the newline counts(行数)
用例:
wc -l /etc/passwd
47 /etc/passwd
wc命令适用于统计指定文本的行数、字数、字节数
wc命令格式为:“wc [参数] 文本”
wc参数-c, --bytes
print the byte counts(字节数)
-m, --chars
print the character counts(字数)
-l, --lines
print the newline counts(行数)
用例:
wc -l /etc/passwd
47 /etc/passwd