tac 反向显示文件内容

1.命令功能

tac是cat的反向拼写,功能是反向显示文件内容。

2.语法格式

tac  option  file

3.使用范例

[root@localhost chu]# cat test.txt 
abcdefg
ABCDEFG
[root@localhost chu]# tac test.txt 
ABCDEFG
abcdefg

  

posted @ 2018-04-23 21:12  joe.chu  阅读(162)  评论(0编辑  收藏  举报