---------------------------分割线------------------------------------
打包
tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩!
tar -zcvf /tmp/etc.tar.gz /etc<==打包后,以 gzip 压缩
tar -jcvf /tmp/etc.tar.bz2 /etc<==打包后,以 bzip2 压缩
tar -zcvf /tmp/etc.tar.gz /etc<==打包后,以 gzip 压缩
tar -jcvf /tmp/etc.tar.bz2 /etc<==打包后,以 bzip2 压缩
防火墙
开启: chkconfigiptables on
关闭: chkconfigiptables off
即时生效,重启后失效
开启: serviceiptables start
关闭: service iptables stop
文本替换
sed-i "s/101.200.211.94/219.83.165.20/g" `find . -type f -name "*.tbl"