linux 常用命令 #查找文件名 ``` find ./ -name "*data*" ``` 输出 ``` .//examples/data_pb2_grpc.py .//monotonic_data.py .//cores_count/data.xlsx ``` # 递归在目录中搜索文本 ``` grep -r -e "hell*" ./ # 正则递归查找 grep -r "hello" ./ # 普通递归查找 grep -rn "hello" ./ # 普通递归查找并显示行号 ``` 输出 ``` .//gofmtfiles.py: return subprocess.check_output(cmdstr, shell=True) .//subsvr/modify_example.py: "msg": "hello", .//synctime.py:subprocess.check_output('date -s "{}"'.format(beijing_time), shell=True) ``` 来自 大脸猪 写于 2024-08-21 14:35 -- 更新于2024-08-21 14:45 -- 0 条评论