sed

# 按照时间切分日志
sed -n '/^2021-11-01 16:35:48.573/, /^2021-11-01 16:35:54/'p hsp-ipmp-payment.log > payment-11.01.log
sed -n '/^2022-03-29 10:50:00/, /^2022-03-29 10:59:00/'p hsp-ipmp-payment.log > payment-03.29.log

cat -n app.log | grep "2022-03-21 16:26:49.801" -B 10

sed -n '/^2022-03-21 16:11:23.666/, /^2022-03-21 16:11:28/'p app.log > dispatch-03.21.log

1.查看当前文件目录各个文件夹大小

du -h --max-depth=1

查看当前目录下所有目录及子目录大小
du -h - .