摘要:
when you use break jump out from for or while statement,if has else caluse,it will not exec,for example:>>> for i in xrange(0,11): print ielse: print "haha,%s"%i 012345678910haha,10>>&g... 阅读全文
摘要:
when you use break jump out from for or while statement,if has else caluse,it will not exec,for example:>>> for i in xrange(0,11): print ielse: print "haha,%s"%i 012345678910haha,10>>&g... 阅读全文
摘要:
cat 1.txt|sort|uniqreference:http://zhangyuexing.7ta.cn/Article/12289/1444/ 阅读全文
摘要:
1.wget 2.tar -zxvf ...tar.gz3.sudo rm -rvf /data/db4.sudo mkdir -p /data/db5.sudo ./mongod --dbpath /var/lib/mongodb/ --port 12345 or ./mongod6.reference:http://www.mongodb.org/display/DOCS/Starting+a... 阅读全文
摘要:
如果只是在终端上进行日常维护,没有必要用中文 export LANG=en_US export LC_ALL=en_US 再做操作就会显示英文了 Ubuntu的server版本,支持中文意义不是很大,折腾console中文支持,还比较麻烦 referencehttp://ubuntuforums.org/showthread.php?t=934357 阅读全文
摘要:
安装ubuntu server版本全记录 1、下载ubuntu 6.06 server http://mirror.lupaworld.com/ubuntu/releases/6.06/ubuntu-6.06-server-i386.iso 刻盘 2、从光驱启动后,选择install LAMP。为了方便,最好将语言选择为英文,不然在命令行模式(tty)底下将会将汉字显示为方块,设置完毕再将语言设置... 阅读全文
摘要:
Ubuntu Server 9.10安装时除非特殊原因,一定要选English,这样默认的语言就是English,到后面的控制台界面上显示时就不会有问题。如果选了中文,安装 完重启后在console上会显示小方块,根本没法看命令的提示。网上分析说问题的原因是console下缺少中文字体的支持,看来中国的Linux开发 者要加油呀。reference:http://blog.csdn.net/or... 阅读全文
摘要:
http://www.linuxidc.com/Linux/2007-05/4065.htmcat<=>tactac 1.txt >tac1.txttail 1.txt == head tac1.txt 阅读全文
摘要:
split -l 310000 inputfile outputprefixcat a.txt,b.txt > c.txt 阅读全文
|