linux下常用命令

一、安装

Command: # sudo spt-get install zip unzip

 

二、防火墙

1) 永久性生效,重启后不会复原

开启: chkconfig iptables on

关闭: chkconfig iptables off
2) 即时生效,重启后复原

开启: service iptables start

关闭: service iptables stop

http://blog.csdn.net/xyw591238/article/details/51593879

 

三、权限

修改当前目录下所有文件权限为777

Command: # sudo chmod  777 * -R

 

四、文件操作

1、删除d8radix目录

Command: # sudo rm -rf d8radix/ -R

 

五、系统操作:

1、-h关闭服务器,-r重启服务器

Command: # sudo shutdown -h now 

posted @ 2017-05-15 21:56  kcat  阅读(229)  评论(0编辑  收藏  举报