摘要: 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 @ 2020-01-15 17:36 jixh 阅读(261) 评论(0) 推荐(0)