文件的操作 cat more head tail
-A, --show-all           等于-vET
文件的操作 cat more head tail
-E, --show-ends          在每行结束处显示"$"
文件的操作 cat more head tail
-T, --show-tabs          将跳格字符显示为^I (想要显示制表位时使用)
文件的操作 cat more head tail
-n, --number             对输出的所有行编号
文件的操作 cat more head tail
-b, --number-nonblank    对非空输出行编号
文件的操作 cat more head tail
-v 列出一些特殊字符

重定向
将一个文件内容输入到另一个文件
cat ping1.sh > i 使用这个命令 则ping1.sh中的内容会覆盖i中的内容
文件的操作 cat more head tail
两个>则会追加到第二个文件内容的末尾
文件的操作 cat more head tail

:> i则是清空i文件的内容
文件的操作 cat more head tail
more显示文件内容 并根据窗口大小分页显示 提示文件百分比

文件的操作 cat more head tail
more -dc /etc/profile  从顶部显示
more +4 /etc/profile 从第四行显示
文件的操作 cat more head tail
more -4 /etc/profile 每屛显示4行

文件的操作 cat more head tail
显示头部head  -n显示第三行 tail 显示尾部
文件的操作 cat more head tail
动态显示
文件的操作 cat more head tail

相关文章: