京东提前批测试:
1.自我介绍
2.你为什么不继续学习机器学习深度学习的东西
3.你对测试开发有哪些了解。你做深度学习如何评价一个模型的好坏
4.linux如何查看日志进程,
cat
tail -f
日志文件说明:
/var/log/message 系统启动后的信息和错误日志,是Red Hat Linux中最常用的日志之一
/var/log/secure 与安全相关的日志信息
/var/log/maillog 与邮件相关的日志信息
/var/log/cron 与定时任务相关的日志信息
/var/log/spooler 与UUCP和news设备相关的日志信息
/var/log/boot.log 守护进程启动和停止相关的日志信息
tail:
tail -100f test.log 实时监控100行日志
tail -n 10 test.log 查询日志尾部最后10行的日志
tail -n+10 test.log 查询10行之后所有的日志
head:
head -n 10 test.log查询日志文件中的头10行日志
head -n-10 test.log 查询日志文件除了最后10行的其他所有日志
cat:
cat -n test.log |grep “debug” 查询关键字的日志 ,得到关键日志的行号
应用场景一:按行号查看——过滤出关键字附近的日志
1)cat -n test.log |grep “debug” 得到关键字日志的行号
2)cat -n test.log |tail -n+92|head -n 20 选择关键字所在的中间一行
tail -n+92 表示查询92行之后的日志
head -n 20 表示在前面的查询结果里再查前20条记录