Notes · 灵感便签 Archive

文本处理三剑客

快速从日志中筛选并统计高频字段:

awk '{print $1}' access.log | sort | uniq -c | sort -rn | head -n 10

系统性能基线

上线前后对比内核与磁盘基本吞吐指标:

uptime
free -h
lsblk -f