杂项--20100514

windows:
turn on/off windows firewall with command:
netsh firewall set opmode enable
netsh firewall set opmode disable
递归copy目录:
xcopy
xcopy /e . e:/test

linux:
递归copy目录:
cp -r src dest
一次创建多级目录:
mkdir -p test/test/test

opensolaris:
在下查看包安装文件的路径:

pkg contents SUNWzfs 或者
pkg contents -t dir,file,link,hardlink -o
action.name,mode,pkg.size,path,target SUNWzfs
scp:
http://blogs.sun.com/janp/entry/how_the_scp_protocol_works
shutdown now:
pfexec uadmin 2 6