- cat和tac
cat命令是正向查看文件,tac命令是反向查看文件
[[email protected] opt]# cat aaa.txt
maweidong
zhangshanchuan
chenjun
shabi
[[email protected] opt]# tac aaa.txt
shabi
chenjun
zhangshanchuan
maweidong
时间: 2024-10-16 18:25:39
cat命令是正向查看文件,tac命令是反向查看文件
[[email protected] opt]# cat aaa.txt
maweidong
zhangshanchuan
chenjun
shabi
[[email protected] opt]# tac aaa.txt
shabi
chenjun
zhangshanchuan
maweidong