linux 查看当前目录文件的大小

 

1.查看当前目录下所有文件的小:du -sh *|sort -n

2.清空文件:> 文件名  (例如:>test.log)

posted @ 2021-01-23 16:04  piwenfei  阅读(471)  评论(0编辑  收藏  举报