文件内容查阅
-
cat
英文:Concatenate and write files
-A 可以列出一些特殊字符,而非空白
-n 行号显示
-
tac
英文:Concatenate and write files in reverse
和cat正好相反,会倒叙显示出来
-
nl 添加行号打印
英文:Number lines and write files
-
more 可翻页查看
空格键:向下翻一页
Enter: 向下滚动一行
-
less 翻页查看 更加好用
/str 向下查询字符串
?str 向上查询字符串
-
head 取出前面几行
head -n 3 文件名 取出前面3行
-
tail 取出后面几行
网友评论