linux tips

  • 查看硬件信息:sudo lshw  #ls hardware
  • 查看CPU位数32/64:getconf LONG_BIT #longest integer bit.
  • 快速建立文件服务器并显示自已的IP:ifconfig |grep  -oP "(?<=inet addr:)[0-9.]+" |grep -v 127.0.0.1 | sed "s/\$/:8000/"  && python -m SimpleHTTPServer
  • resize image: convert source -resize '100x200' dest
     

Bash Notes

2010-08-26

Read more

一条命令下载整个Douban Album

主要是为了练习命令行。

Read more