tac命令
- 功能说明:文本文件查看工具,文件内容为逆序。
- 用法:tac [OPTION]... [FILE]...
示例:使用cat命令查看/etc/issue,再使用tac命令查看/etc/issue
[root@node1 ~]# cat /etc/issue
\S
Kernel \r on an \m
[root@node1 ~]# tac /etc/issue
Kernel \r on an \m
\S
2021-08-07 05:14:08
示例:使用cat命令查看/etc/issue,再使用tac命令查看/etc/issue
[root@node1 ~]# cat /etc/issue
\S
Kernel \r on an \m
[root@node1 ~]# tac /etc/issue
Kernel \r on an \m
\S