AIX/UNIX/Linux
文章平均质量分 69
lemontree1123
这个作者很懒,什么都没留下…
展开
-
操作系统诊断工具truss, pstack, and pmap等
操作系统诊断工具truss, pstack, and pmaptrussTruss is an UNIX utility to trace Unix System Calls in Solaris platform. Truss utility is very useful tounderstand complex problems at OS level. As Truss util翻译 2012-09-19 14:44:14 · 3430 阅读 · 1 评论 -
Linux下使用strace的例子
strace参数如下:-t 输出结果精确到秒-tt 输出结果精确到微妙-ttt 精确到微妙,而且时间表示为unix时间戳 -T 记录每个系统调用花费的时间,可以看看哪个系统调用时间长-s 1024 显示系统调用参数时,对于字符串显示的长度, 默认是32,如果字符串参数很长,很多信息显示不出来-o filename 把跟踪结果输出到文件-p pid 可以跟踪原创 2015-04-28 15:14:59 · 954 阅读 · 0 评论 -
linux命令技巧
[oracle@rh64 ~]$ cat lgrw.txtcat: lgrw.txt: No such file or directory[oracle@rh64 ~]$ ^rw^wrcat lgwr.txt18:03:19.703928 times({tms_utime=27, tms_stime=18, tms_cutime=0, tms_cstime=0})原创 2015-08-31 09:41:36 · 1284 阅读 · 1 评论 -
linux个人操作习惯
编辑~/.bashrc文件加入以下内容,定义别名# .bashrc # User specific aliases and functionsalias rm='rm -i'alias cp='cp -i'alias mv='mv -i'alias cls='clear' #DOS下的清屏命令,也可以用Ctrl+L,简单快速原创 2015-08-31 09:27:09 · 853 阅读 · 1 评论