【linux】查看实时日记log命令、清空、查看文件大小

1、实时查看日记

tail -f xx.log

2、清空日记

> xxx.log

3、查看文件大小

du -h xxx.log