linux常用命令
ls只列出目录:ls -F | grep '/' 或者 ls -F | fgrep '/'
更改ip地址:
[root@localhost ~]# setup #使用setup工具 [root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 把ONBOOT=“no” 改为 ONBOOT=“yes“ #启动网卡 [root@localhost ~]# service network restart #重启网络服务