摘要: 11.5 如何获得Linux命令的源代码Q: Linux中如何知道ifconfig属于哪个包A:# which ifconfig/sbin/ifconfig# rpm -qf /sbin/ifconfignet-tools-1.51-3 <-- rpm包名字# rpm -qi net-tools-1.51-3或者# rpm -qif /sbin/ifconfig<-- 直接查找src.rpmQ: 如何获取ps命令的源代码A: dfbb@smth 2003-04-231) $ rpm -qif `which ps` | grep "Source RPM" | aw 阅读全文
posted @ 2011-12-28 19:50 规格严格-功夫到家 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 用Git真。。。。我卸载了,还出这个问题:Goolge:卸载git客户段后,一按右键,就跳出[error]could not find git path 警告窗口,好烦,google了一下,发现解决办法: 1.在注册表删除下面字段 HKEY_CURRENT_USER\Software\Classes\CLSID\{ca586c80-7c84-4b88-8537-726724df6929} 2.删干净安装文件 Git安装目录\git-cheetah\git_shell_ext.dll 删掉,如果删不掉,重启,可删除。 http://java-007.iteye.com/blog/750654 阅读全文
posted @ 2011-12-28 19:34 规格严格-功夫到家 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1。// 取得列幅的最大值 private int getPreferredWidthForCloumn(JTable table,int icol){ TableColumnModel tcl = table.getColumnModel(); TableColumn col = tcl.getColumn(icol); int c = col.getModelIndex(),width = 0,maxw = 0; for(int r=0;r <table.getRowCount();++r){ Table... 阅读全文
posted @ 2011-12-28 16:01 规格严格-功夫到家 阅读(676) 评论(0) 推荐(0) 编辑
摘要: http://cache.baidu.com/c?m=9d78d513d99b15ef0bb2c3690d67c0171f43f3122ba6da020ea08449e3732d44501194ac26520774d5d2086615e80902e5aa7034751421c486d5d81480ee8528588b2335671cf1104f8c04ee9612638473d00dfea86db4faa92fc3f08f86c2151599155e2b9df38e5d0417cc68fb1231e1a59a4d155a10bbeb3663fa536a&p=9f7cd316d9c45d 阅读全文
posted @ 2011-12-28 14:52 规格严格-功夫到家 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 名称:多处理器系统中的CPU的利用率的统计格式:mpstat [ -P { cpu | ALL } ] [ -V ] [ interval [ count ] ]描述:mpstat是Multiprocessor Statistics的缩写,是实时系统监控工具。其报告与CPU的一些统计信息,这些信息存放在/proc/stat文件中。在多CPUs系统里,其不但能查看所有CPU的平均状况信息,而且能够查看特定CPU的信息。常用选项:-P {|ALL} 表示监控哪个CPU, cpu在[0,cpu个数-1]中取值internal 相邻的两次采样的间隔时间count 采样的次数,count只能和delay 阅读全文
posted @ 2011-12-28 13:26 规格严格-功夫到家 阅读(327) 评论(1) 推荐(0) 编辑
摘要: The JVM is hanging if the process is still present but is not responding in some sense. The end user experience usually is timing out and get a 404 page not found error in the browser. This lack of response can be caused because:* The process has come to a complete halt because of a deadlock conditi 阅读全文
posted @ 2011-12-28 10:40 规格严格-功夫到家 阅读(705) 评论(0) 推荐(0) 编辑
摘要: http://en.wikipedia.org/wiki/Category:Unix_signals1.SIGHUP信号UNIX中进程组织结构为 session (会话)包含一个前台进程组及一个或多个后台进程组,一个进程组包含多个进程。一个session可能会有一个session首进程,而一个session首进程可能会有一个控制终端。一个进程组可能会有一个进程组首进程。进程组首进程的进程ID与该进程组ID相等。这儿是可能会有,在一定情况之下是没有的。与终端交互的进程是前台进程,否则便是后台进程。SIGHUP会在以下3种情况下被发送给相应的进程:1、终端关闭时,该信号被发送到session首进程 阅读全文
posted @ 2011-12-28 10:34 规格严格-功夫到家 阅读(447) 评论(0) 推荐(0) 编辑