df -h 看见磁盘空间满了.
eg:
pwd /home/jxbestpay/platform_account_task/logs
cd /home/jxbestpay/platform_account_task/logs --去日志目录,然后把日志文件压缩
gzip *2018-0* --表示2018年1-9月的进行了压缩
ll --查看,压缩好了
mv *2018-0* /home/jxbestpay/databack_to_20/log/platform_account_task --移到这里(/home/jxbestpay/databack_to_20/log/platform_account_task)
看文件移过来了没有(去这里看(/home/jxbestpay/databack_to_20/log/platform_account_task)
cd /home/jxbestpay/databack_to_20/log/platform_account_task
ll --查看