2015年11月18日

c++ dirname() basename()

摘要: http://linux.about.com/library/cmd/blcmdl3_dirname.htm#include #include int main(void) { char *path = "../conf/pipe_client.conf"; std::cout << p... 阅读全文

posted @ 2015-11-18 21:23 雨渐渐 阅读(4283) 评论(0) 推荐(0)

shell ulimit -n

摘要: 通过ulimit -n命令可以查看linux系统里打开文件描述符的最大值,一般缺省值是1024, 阅读全文

posted @ 2015-11-18 15:05 雨渐渐 阅读(359) 评论(0) 推荐(0)

shell 进程查询相关的命令

摘要: 同一个进程部署多个,如何知道删除哪个:ll /proc/61147会显示位置查看pid下哪些socket链接ll /proc/61147/fd 阅读全文

posted @ 2015-11-18 14:49 雨渐渐 阅读(240) 评论(0) 推荐(0)

shell grep 高亮

摘要: grep "socket" a --color=auto 阅读全文

posted @ 2015-11-18 14:45 雨渐渐 阅读(398) 评论(0) 推荐(0)

导航