您的位置:首页 > 运维架构 > Linux

Linux wc 命令,查看行数,字节数

2016-03-31 14:55 573 查看
wc 命令

查看行数,字节数

例如:

wc all.3.info

171 521 10762 all.3.info

man wc

NAME

wc - print the number of newlines, words, and bytes in files

SYNOPSIS

wc [OPTION]... [FILE]...

DESCRIPTION

Print newline, word, and byte counts for each FILE, and a total line if more

than one FILE is specified. With no FILE, or when FILE is -, read standard

input.

-c, --bytes

print the byte counts

-m, --chars

print the character counts

-l, --lines

print the newline counts

:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: