安装curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh卸载rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/P...
分类:
其他好文 时间:
2015-02-03 19:06:22
阅读次数:
146
Docker使用cgroup实现CPU,内存和磁盘IO等系统资源的限制。CPUDocker现在有2个与CPU资源相关的参数,-c可以指定CPU的占比,--cpuset可以绑定CPU。例如,指定容器在CPU 0,1运行:#dockerrun -it --rm-c 1024 --cpuset=0,1db...
分类:
其他好文 时间:
2015-02-03 10:45:03
阅读次数:
356
Linux命令简单运用:cd cd ../ cd ./ cd ~cd 选择路径cd ../选择到父亲路径下cd ./选择到当前路径cd ~到当前用户默认目录下pwd 显示当前路径ls 查看文件mkdir 创建文件rm 删除文件
分类:
系统相关 时间:
2015-02-02 22:43:31
阅读次数:
181
我们知道,rm命令其实并不是真正的从物理上删除文件内容,只过不把文件的inode回收了,其实文件内容还在硬盘上。所以,如果你不小删除了什么比较重要的程序配置文件的时候,我们完全可以用grep命令在恢复,下面是一个恢复示例:grep-a-B50-A60‘somestringinthefile‘/dev/sda1&g..
分类:
其他好文 时间:
2015-02-02 20:04:08
阅读次数:
142
find -exec 这个命令组合很好用,在find命令后加上 -exec,就可以把找出来的东西进行操作。 之前写过一篇Linux命令:find与exec参数的用法 #find ./ -name Thumbs.db -exec rm -f {} \;??查找本目录下所有的Thu...
分类:
其他好文 时间:
2015-02-02 16:13:58
阅读次数:
156
分享一个shell脚本技巧,大家写shell脚本的时候,一般而言仅仅保证功能可用,但程序的鲁棒性却不是太好,不够健壮,多数是脚本处理一些中断信号导致,应对非预期的系统信号,其实系统自带的trap命令可以很好的处理,例如:trap "rm -f/var/lock/subsys/my_program_l...
分类:
其他好文 时间:
2015-02-01 23:08:35
阅读次数:
438
NAME xargs - build and execute command lines from standard input 从标准输入构建并执行命令行SYNOPSIS xargs [-0prtx] [-E eof-str] [-e[eof-str]] [--eof[=eof-str]] [.....
分类:
其他好文 时间:
2015-02-01 23:05:34
阅读次数:
320
yum方式安装的mysql 1、yum remove mysql mysql-server mysql-libs compat-mysql51 2、rm -rf /var/lib/mysql 3、rm /etc/my.cnf 查看是否还有mysql软件: rpm -qa|grep mysql 如果存在的话,继续删除即可。 rpm方...
分类:
数据库 时间:
2015-02-01 12:18:21
阅读次数:
159
解决办法:Open:/system/etc/init.d/×××(not the same file on different ROMs, find the right file)Find the line that says:rm /dev/log/mainChange the line to:#...
分类:
其他好文 时间:
2015-01-29 21:05:57
阅读次数:
198
grep "expects build fingerprint" . -rnc | awk 'BEGIN{FS=":"}$2==3{print $1}' | xargs -I '{}' mv {} ../finger-error/http://www.cnblogs.com/chengmo/arch...
分类:
其他好文 时间:
2015-01-29 19:08:19
阅读次数:
302