Stay Hungry , Stay Foolish

君子生非异也,善假于物也

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年8月18日

摘要: grep常用的使用方法 grep –rns “match_content”filename 查看匹配内容的行 find /path –name “*.h” –o –name “*.cpp” | xargs grep –rn “match_content”在特定的文件类型中查找 grep –rns “ 阅读全文
posted @ 2015-08-18 07:02 octocat 阅读(448) 评论(0) 推荐(0) 编辑

摘要: 1 调用跟踪 跟踪系统调用 strace ls –l 跟踪库调用 ltrace 2 lsof(list open file) 查看程序命令打开了哪些文件 lsof –p PID; lsof –c CMD 查看某个用户打开的文件 lsof –u root 查看某个文件被哪个程序访问 lsof file 阅读全文
posted @ 2015-08-18 06:53 octocat 阅读(708) 评论(0) 推荐(0) 编辑