linux 大文件排查

Last updated on November 20, 2024 am

🧙 Questions

日志文件太大如何排查

☄️ Ideas

sudo du -h --max-depth=1 /u01
cd /u01/PowerJob/powerjob-server
mkdir log-split
cp nohup.out log-split/
split -b 10M nohup.out part_
ls -ltr
mv part_zaxr /tmp
sudo tail -n 400 part_zaxq | grep '2024-07'
cat part_zaxr | grep '2024-07-26 22:01:01'
cat part_zaxr | grep ERROR
rm -rf log-split/
tail -n 1000000 nohup.out > 20240729.log

linux 大文件排查
https://ispong.isxcode.com/os/linux/linux 大文件排查/
Author
ispong
Posted on
July 29, 2024
Licensed under