2012年11月16日
摘要: 声明:该文章来自网络,仅转载,但来源网站未为其标明原作者及出处 来源地址: http://www.jb51.net/LINUXjishu/34604.html TOP是一个动态显示过程,即可以通过用户按键来不断刷新当前状态.如果在前台执行该命令,它将独占前台,直到用户终止该程序为止.比较准确的说,top命令提供了实时的对系统处理器的状态监视.它将显示系统中CPU最“敏感”的任务列表.该命令可以按... 阅读全文
posted @ 2012-11-16 15:46 Neoh 阅读(315) 评论(0) 推荐(0) 编辑
  2012年9月28日
摘要: We have talked about the g flag, with which we can change every string that matches the pattern line by line instead of the first one. Now Let me introduce other flags to you. examples: 1.echo "This... 阅读全文
posted @ 2012-09-28 13:48 Neoh 阅读(466) 评论(0) 推荐(0) 编辑
摘要: Look at the parts of the sed command. We may be surprised for the replace string which is not the regular pattern. Yes, at most of the time we may know the correct words to reaplace the pattern. But w... 阅读全文
posted @ 2012-09-28 12:22 Neoh 阅读(275) 评论(0) 推荐(0) 编辑
摘要: With the substitution command, we can handle 90% of the most frequent uses of sed. But there are so many features that we cannot miss it! Delimiter is one of them. We can see the examples that use sla... 阅读全文
posted @ 2012-09-28 12:22 Neoh 阅读(331) 评论(0) 推荐(0) 编辑
摘要: These days, I find the companies think highly of Linux operating abilities. And I do forget the features of Linux bash shell while I was writing the automatic hadoop setting tools. Consequently, I wan... 阅读全文
posted @ 2012-09-28 12:21 Neoh 阅读(986) 评论(0) 推荐(0) 编辑
摘要: sed is a special editor modifying files automatically. If you want to write a program to make changes in a file, sed is the tool to use. Now, I introduce the most basic command that called substitutio... 阅读全文
posted @ 2012-09-28 12:19 Neoh 阅读(414) 评论(0) 推荐(0) 编辑
  2012年2月9日
摘要: Today I've find something fresh while having the meeting class on net. I've never learned that the Linux system will be unreasonably unsafe since today. Consequently I should record it here.Okay, let's begin right though.Nearly every distribution of Linux Operating System have this probl 阅读全文
posted @ 2012-02-09 16:47 Neoh 阅读(673) 评论(0) 推荐(0) 编辑
  2011年3月17日
摘要: 细节中自有天地,别小看了你指尖下的函数,她们可以很美。 阅读全文
posted @ 2011-03-17 19:41 Neoh 阅读(2147) 评论(1) 推荐(2) 编辑
  2011年3月4日
摘要: 这本书真的是详细到吓死人!这次我读的是变量的命名,Robert竟然用了14页的篇幅去介绍它!最喜欢的一句话:问题的答案没有体现在代码段中,可那就是它们该在的地方。回到正题,写感受最深的笔记:1、避免误导 程序员必须避免留下掩藏代码本意的错误线索。应当避免使用于本意相背的词。例如,hp、aix和sco都不该作为变量名,因为它们都是Unix平台或者类Unix平台的专有名称。即便你是在编写三角计算程序,hp看起来是个不错的缩写,但那也会提供错误信息。 更别用accountList来指称一组帐号,除非它真的是List类型。List一词对程序员来说有特殊的意义。如果包纳帐号的并非真的是个List,就会引 阅读全文
posted @ 2011-03-04 12:49 Neoh 阅读(470) 评论(5) 推荐(0) 编辑
  2011年2月26日
摘要: 拿到《代码整洁之道》已经很久了,一直没时间来读。今天起床决定什么都不干,只输入不输出。拿起这本书开始读…… 刚读完这本书的第一章就获益匪浅。里面有一句话说得非常好:这本书以详细到吓死人的程度介绍代码整洁之道。里面有太多太多的精髓之处,无法一一列举,这里只摘录我感触最深的。 Javadoc中的@author字段告诉我们自己是什么人。我们是作者。作者都有读者。实际上,作者有责任与读者做好良好的沟通。下次你写代码的时候记得自己是作者,要为评判你工作的读者写代码。 你或许会问:代码真正“读”的成分有多少呢?难道力量主要不是用在“写”上吗? 你是否玩过“编辑器回放”?20世纪80、90年代,Emac之. 阅读全文
posted @ 2011-02-26 12:29 Neoh 阅读(602) 评论(0) 推荐(0) 编辑