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
#重启网络服务

  

posted @ 2014-10-05 00:33  自学it技术  阅读(152)  评论(0编辑  收藏  举报