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