美文网首页
Linux 文件与目录管理

Linux 文件与目录管理

作者: 凌霄雾月 | 来源:发表于2020-03-17 09:45 被阅读0次

文件内容查阅

  • 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 取出后面几行

相关文章

网友评论

      本文标题:Linux 文件与目录管理

      本文链接:https://www.haomeiwen.com/subject/qfzoehtx.html