学习linux操作记录

来源:互联网 发布:苹果电脑软件无法删除 编辑:程序博客网 时间:2024/04/28 13:43
---------------------------分割线------------------------------------
打包
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"




0 0
原创粉丝点击