Linux命令学习二

1.给test文件或test文件夹写保护

    chattr +i /root/Desktop/test 

2 、解压文件

    tar.bz 2文件的解压 #tar jxvf *.tar.bz 2

    tar.gz文件的解压 #tar xzpf *.tar.gz

    rpm 文件的解压 #rpm -ivh *.rpm

 3 、激活ssh 服务

    /etc/rc.d/init.d/sshd start

    service sshd start

    ubuntu开启ssh 服务

    studo apt-get install ssh

    $sudo passwd root

4 、关闭防火墙

    /etc/rc.d/init.d/iptables stop

    Linux 防火墙的关闭和开启 

    1 )重启后生效

    开启: chkconfig iptables on

    关闭: chkconfig iptables off

    2 )即时生效,重启后失效

    开启: service iptables start

    关闭: service iptables stop

 

posted on 2010-08-04 09:34  ~~奔跑~~  阅读(268)  评论(0编辑  收藏  举报

导航