$ cat --h
Usage: cat [OPTION] [FILE]...
Concatenate FILE(s), or standard input, to standard output.
-A, --show-all equivalent to -vET
与-vET等价
-b, --number-nonblank number nonblank output lines
输出行号,仅仅针对非空白行
-e equivalent to -vE
与-vE等价
-E, --show-ends display $ at end of each line
文件末尾展示$
-n, --number number all output lines
输出行号
-s, --squeeze-blank never more than one single blank line
合并多个空白行,仅仅输出一行
-t equivalent to -vT
-T, --show-tabs display TAB characters as ^I
将 TAB 展示为^I
-v, --show-nonprinting use ^ and M- notation, except for LFD and TAB
展示一些看不出来的字符$ cat 1 hello world hello linux查看行号和特殊符号
$ cat -n 1
1 hello world
2
3
4 hello linux
5
$ cat -A 1
hello^Iworld^M$
^M$
^M$
hello^Ilinux^M$
^M$-A參数 结尾以 $结束, TAB 以^I展示。 ^M表示windiows下的回车键。$ more filename经常使用命令:
$ less filename经常使用命令:
字符串: 向上查询
原文:http://www.cnblogs.com/lcchuguo/p/5204747.html