linux下获取本机IP地址
linux下获取本机IP地址
方法一:
local_host="`hostname --fqdn`"
local_ip=`host $local_host | awk '{print $NF}'`
方法二:
/sbin/ifconfig |grep -Eo '\baddr:[^ \t]+' |grep -Eo '[0-9\.]+' |head -n1
相关文档:
1操作系统的启动和操作系统的引导程序的编写
1.linux
0.01中的引导汇编程序的解释
当PC机打开电源后,80x86结构自动的进入实施模式。
--------------------------------------------------------------------------------------------
所谓的实时模式是指的cpu启动时候的模式,这时候就相当于一个速度超快的80 ......
查看Linux系统版本信息
转载自 http://www.cnblogs.com/starspace/archive/2009/03/03/1402263.html
怎样查看Linux系统版本信息的命令...
几种查看Linux版本信息的方法:
1. uname -a Webjx.Com
2. cat /proc/version
3. cat /etc/issue
4. lsb_release -a
详解 lsb_release -a
登 ......
http://tldp.org/HOWTO/Linux-i386-Boot-Code-HOWTO/kernel_head.html
http://bbs.tongji.net/thread-258437-1-1.html
http://www.diybl.com/course/6_system/linux/Linuxjs/200871/129588_6.html
http://mmdoc.sourceforge.net/mmdoc/node12.html ......