摘要: 1、使用重定向的方法 [root@centos7 ~]# du -h test.txt 4.0K test.txt [root@centos7 ~]# > test.txt [root@centos7 ~]# du -h test.txt 0 test.txt 2、使用true命令重定向清空文件 [ 阅读全文
posted @ 2019-05-13 14:28 幽灵鸟 阅读(5090) 评论(0) 推荐(0) 编辑