摘要: 此命令可显示每个进程的栈跟踪。pstack 命令必须由相应进程的属主或 root 运行。可以使用 pstack 来确定进程挂起的位置。此命令允许使用的唯一选项是要检查的进程的 PID。 stack是一个脚本工具,其核心实现就是使用了gdb以及thread apply all bt命令。 strace -o server.strace -Ttt -p 16739 sh pst... 阅读全文
posted @ 2013-04-22 08:00 浪里飞 阅读(499) 评论(0) 推荐(0) 编辑
摘要: ltrace - A library call tracer strace - trace system calls and signals -S display system calls显示系统调用 -t, -tt, -ttt print absolute timestamps打印绝对时间戳 -T show the time spent inside ea... 阅读全文
posted @ 2013-04-22 01:35 浪里飞 阅读(267) 评论(0) 推荐(0) 编辑
摘要: strings命令 在对象文件或二进制文件中查找可打印的字符串。 语法 strings [ -a ] [ - ] [ -o ] [ -t Format ] [ -n Number ] [ -Number ] [ File ... ] 描述 strings 命令在对象文件或二进制文件中查找可打印的字符串。字符串是 4 个或更多可打印字符的任意序列,以换行符或空字符... 阅读全文
posted @ 2013-04-22 01:15 浪里飞 阅读(1681) 评论(0) 推荐(0) 编辑
摘要: touch touch [OPTION]... FILE... Update the access and modification times of each FILE to the current time.A FILE argument that does not exist is created empty, unless -c or -h is su... 阅读全文
posted @ 2013-04-22 00:57 浪里飞 阅读(165) 评论(0) 推荐(0) 编辑
摘要: C语言的readlink read value of a symbolic link。 ssize_t readlink(const char *path, char *buf, size_t bufsiz); readlink() places the contents of the symbolic link path in the buffer buf, which ... 阅读全文
posted @ 2013-04-22 00:54 浪里飞 阅读(887) 评论(0) 推荐(0) 编辑