linux命令

74 阅读1分钟

查看日志

1. tail 实时查看某文件新增

tail -f xxx.log

2. watch

实时查看cpu情况

watch -n0.5 "cat sys/devices/system/cpu/cpu7/cpufreq/cpuinfo_cur_freq"

3. logcat

android调试日志实时查看

adb shell 
logcat xxx | grep xxxx