- 博客(9)
- 收藏
- 关注
原创 bash 条件表达式
if [ ! -e /system/app/test.apk ];thenelseifConditional Constructs http://www.gnu.org/software/bash/manual/bashref.html#Conditional-ConstructsBash Conditional Expressions http://www.gnu.or
2014-01-19 21:37:57 752
原创 Appending Redirected Output
e.g. cat test.sh >> log.logcat test2.sh >> log.log则test.sh和test2.sh的内容合并到log.log中Redirection of output in this fashion causes the file whose name results from the expansion of word
2014-01-19 21:21:34 601
原创 bash并行执行
#!/bin/bashfor ((i=0;i<5;i++));do { sleep 3; echo "done!" } donewait上面这段bash脚本执行一次要耗时3x5=15秒钟 。 但下面这段bash脚本执行完却仅耗时3秒钟#!/bin/bashfor ((i=0;i<5;i++));
2014-01-19 21:01:09 2051
原创 Linux scp 远程拷贝
Linux scp 使用详解scp -r local_folder remote_username@remote_ip:remote_folderscp -r remote_username@remote_ip:remote_folder local_folder
2014-01-15 22:40:12 569
原创 android用eclipse导入时容易产生bin目录
android用eclipse导入时容易产生bin目录,此时编译时提示如下错误信息:Checking build tools versions...build/core/java.mk:9: *** bin: Target java module does not define any source or resource files. Stop.解决方法是删除该bin目
2014-01-05 23:16:47 968
原创 设置临时环境变量路径
只在当前终端命令行有效,退出当前终端命令行则失去效力,重新打开一个终端命令行则是整个系统的环境变量路径。export PATH= 清掉路径$PATH 确认当前路径空export PATH=XXX 重新设置路径
2014-01-05 22:33:31 1305
原创 apt-get -f install 和 apt-get update
$sudo apt-get install rpmReading package lists... DoneBuilding dependency tree Reading state information... DoneYou might want to run 'apt-get -f install' to correct these:The followin
2014-01-05 15:34:58 2460
原创 gcc version is very high
when compile android 4.0 , when gcc version 4.6.3 is very high, it will show error message below, It must use gcc version 4.4 .-------------------------------------------------------------------
2014-01-03 00:06:26 1364
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人