随笔分类 -  linux命令

pip 代理设置,坑爹的代理继续
摘要:Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux一开始只是试用了export http_proxy=http://ip:port,然后执行sudo -E pip install requests的时候总是报 Cannot fetch index base URL http://pypi.python.org/simple/的错误,各种无奈,最后突然想到可能是http重定向到https的问题。再次exporthttps_proxy=http: 阅读全文
posted @ 2013-09-05 12:33 Zaiping 阅读(26217) 评论(3) 推荐(0)
Highlight the three last updated files in ls output
摘要:Learn fromstackexchangeHighlight the three last updated files in ls outputgrep --color -E --"$(ls -rtl | tail -n3)|$"<(ls -l)orls -l|grep --color -E "$(ls -rtl | tail -n3)|$"It uses grep with highlight on inputls -land uses a regular expression to search for either of the inpu 阅读全文
posted @ 2012-10-10 14:02 Zaiping 阅读(172) 评论(0) 推荐(0)
how to add user into sudoers file?
摘要:1 add write permission to /etc/sudoers file2 add your login in under these lines:# User privilege specificationroot ALL=(ALL) ALLyourlogingALL=(ALL) ALL3 restore the original file permission 阅读全文
posted @ 2012-09-09 11:32 Zaiping 阅读(196) 评论(0) 推荐(0)
how to start Ubuntu w/o GUI interface
摘要:We can edit the GRUB config to start the Ubuntu from text interface, by doing this the performance should be better.1 grant write permission to grub.cfg filesudo chmod +w /boot/grub/grub.cfg2 edit the cnfg file and add the text loginsudo vi grub.cfgAdd "text" at the end of this line:linux 阅读全文
posted @ 2012-09-08 22:00 Zaiping 阅读(181) 评论(0) 推荐(0)