易截截图软件、单文件、免安装、纯绿色、仅160KB

/etc/hosts file in linux configure manual

Name
hosts - The static table lookup for host names
Synopsis
/etc/hosts
Description
This manual page describes the format of the /etc/hosts
file. This file is a simple text file that
associates IP addresses with hostnames, one line per IP address. For
each host a single line should be present with the following
information:
IP_address canonical_hostname [aliases...]
Fields of the entry are separated by any number of blanks and/or tab
characters. Text from a "#" character until the end of the line is a
comment, and is
ignored. Host names may contain only alphanumeric characters, minus
signs ("-"), and periods ("."). They must begin with an alphabetic
character and end with
an alphanumeric character. Optional aliases provide for name changes,
alternate spellings, shorter hostnames, or generic hostnames (for
example,
localhost
).
The Berkeley Internet Name Domain (BIND) Server implements the
Internet name server for UNIX systems. It augments or replaces the /etc/hosts
file or
host name lookup, and frees a host from relying on /etc/hosts
being up to date and complete.
In modern systems, even though the host table has been superseded by DNS, it is still widely used for:
bootstrapping
Most systems have a small host table containing the name and
address information for important hosts on the local network. This is
useful when DNS is not
running, for example during system bootup.
NIS
Sites that use NIS use the host table as input to the NIS host
database. Even though NIS can be used with DNS, most NIS sites still
use the host table with
an entry for all local hosts as a backup.
isolated nodes
Very small sites that are isolated from the network use the
host table instead of DNS. If the local information rarely changes, and
the network is not
connected to the Internet, DNS offers little advantage.
Example
127.0.0.1 localhost
192.168.1.10 foo.mydomain.org
foo
192.168.1.13 bar.mydomai


相关文档:

Linux新手要了解的十个知识点

Linux新手要了解的十个知识点
  1.Linux是大小写敏感的系统,举个例子,Mozilla, MOZILLA, mOzilla和 mozilla是四个不同的命令(但是只有第四个mozilla是真正有效的命令)。还有,my_filE, my_file,和 my_FILE是三个不同的文件。用户的登录名和秘密也是大小写敏感的(这是因为UNIX系统和C语言的传统一向是大小写敏感所致 ......

Linux命令:lsmod 显示已载入系统的模块

lsmod(list modules)
 
功能说明:显示已载入系统的模块。
语  法:lsmod
补充说明:执行lsmod指令,会列出所有已载入系统的模块。Linux操作系统的核心具有模块化的特性,应此在编译核心时,务须把全部的功能都放入核心。您可以将这些功能编译成一个个单独的模块,待需要时再分别载入。
范例:
[root@lin ......

linux时钟jiffies及其相关


在LINUX的时钟中断中涉及至二个全局变量一个是xtime,它是timeval数据结构变量,另一个则是jiffies,首先看timeval结构
struct timeval
{
time_t tv_sec; /***second***/
susecond_t tv_usec;/***microsecond***/
}
到底microsecond是毫秒还是微秒??
1秒=1000毫秒(3个零),1秒=1000 000微秒(6个零),1秒=1 ......

linux中出错处理

linux中,在支持多线程的环境中,通常每个线程都有属于自己的errno变量,是用来表示特定错误的常量。
以下是<errno.h>中定义的所有出错errno常量
#define EPERM            1      /* Operation not permitted */
#define ENOEN ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号