工作中常用到的Linux指令

1、用户切换
切换root用户:su
切回当前用户:exit logout
2、查找文件
find -name "文件名"
3、查找字符串所在文件并显示行号
grep -nr "字符串"

原文地址:https://www.cnblogs.com/grebamboo/p/10732208.html