日期:2014-05-16  浏览次数:20571 次

Linux常用操作命令
   这个常用命令应该说是自己经常用的一些的总结吧,遇到了就加进来
    1.重启:reboot  
    2.关机:shutdown -h now 
    3.查看Linux版本信息:cat /proc(内核文件)/version  
   4.创建一个文件:touch 文件名
     5.将一个文件或目录隐藏:mv test .test
       显示就倒过来:mv .test test
       查看隐藏文件:ls -a
     6.删除目录:rm -r 目录名
      7.查看进程信息:ps -ef
     8.防火墙操作
          chkconfig iptables --list //查看防火墙状态
          chkconfig iptables on // 开
          chkconfig iptables off //关
      9.查看磁盘分区情况
          fdisk -l    
     10.查看磁盘使用情况
            df -h    
     11.查看当前路径
            pwd(print working directory)