摘要: ```sh # 在某个目录下查看含有某个字段的文件 find . | xargs grep "custom" # lldb 调试core文件指令: lldb -c /storage/data/core/core_processor.136668.sz-lab-005.1670427164 -- ma 阅读全文
posted @ 2023-05-28 13:51 砚台是黑的 阅读(9) 评论(0) 推荐(0) 编辑
摘要: ```sh # 将所有栈信息保存到文件中 # 进入GDB中后,依次执行下面步骤: # 1、 set logging file planning.log # 2、 set logging on # 3、 thread apply all bt # 4、 set logging off # 5、如果从c 阅读全文
posted @ 2023-05-28 13:48 砚台是黑的 阅读(668) 评论(0) 推荐(0) 编辑
摘要: ### 一、git clean用法 > 想批量删除branch中新加的文件(untracked files),git reset --hard不行 > > 首先确定要删除的文件 `git clean -fd -n` > > 如果以上命令给出的文件列表时你想要删除的,那么接下来执行 `git clea 阅读全文
posted @ 2023-05-28 13:23 砚台是黑的 阅读(449) 评论(0) 推荐(0) 编辑
摘要: ###方式一 ```sh # shell 脚本中自动为 sudo 输入密码 echo 123456 | sudo -S apt update -S, --stdin Write the prompt to the standard error and read the password from t 阅读全文
posted @ 2023-05-28 13:08 砚台是黑的 阅读(445) 评论(0) 推荐(0) 编辑