2010年6月20日星期日

useful tools

lxzrz: Communication package providing the X, Y, and ZMODEM file transfer protocols
       http://www.ohse.de/uwe/software/lrzsz.html
kibitz: similar to multi-user mode of screen
       http://expect.nist.gov/  
       http://nails.blog.51cto.com/640492/138028
dstat: Dstat is a versatile replacement for vmstat, iostat and ifstat
       http://dag.wieers.com/home-made/dstat/

2010年6月18日星期五

switch server under ssh

input "~" and Ctrl+Z to go back
use fg to go to

2010年6月12日星期六

android notes

root shell:  adb shell
upload file: adb remount
             adb push c:\111 /sdcard/
download file: adb pull /sdcard/xxx c:\
install app: adb install [-s] xxx.apk      # -s: to sdcard
uninstall app: adb uninstall [-k] xxx.apk  # -k: keep data
get serialno: adb get-serialno

2010年6月8日星期二

use ld to link object file

ld -static -o hello -L`gcc -print-file-name=` /usr/lib/crt1.o /usr/lib/crti.o hello.o /usr/lib/crtn.o -lc -lgcc
and

ld -dynamic-linker /lib/ld-linux.so.2 -o hello -L`gcc -print-file-name=` /usr/lib/crt1.o /usr/lib/crti.o hello.o /usr/lib/crtn.o -lc -lgcc