linux 命令总结

来源:互联网 发布:linux hexdump 编辑:程序博客网 时间:2024/06/01 09:12

1.linux中开启网卡eth0: ifup eth0 或者 ifconfig up eth0

  Linux中禁用网卡是:ifconfig eth0 down


2.查看ip: ifconfig


3 .vi:保存退出:输入:":wq"

4 linux 安装rpm包时遇到error:Failed dependencies解法方法:

   后面加 --nodeps --force

   表示不分析依赖关系


5 安装rpm扩展明文件方法:rpm -ivh 文件名

6  查看本机信息:

   查看CPU信息(型号)
# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
      8  Intel(R) Xeon(R) CPU            E5410   @ 2.33GHz
(看到有8个逻辑CPU, 也知道了CPU型号)

 
# getconf LONG_BIT
   32
(说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)


查看发行版本

#cat /etc/issue |grep Linux


7 linux开机默认进入字符界面:修改 /etc/initttab文件中initdefault改成3.

  



原创粉丝点击