/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正则表达式技术。包括使用不同的工具如grep、awk以及sed去查找包含特定文本串的文件。
关键词:Linux正则表达式 grep awk sed
正在加载数据...
【TechTarget中国原创】作为一个Linux管理员,您需要对文本文件进行处理。您可以使用不同的工具如grep、awk以及sed去 ......
一.为什么学linux
1.性能卓越
开源,免费,稳定,安全,处理多并发
2.工作方面:
linux系统管理员
linux程序员(linux软件工程师,linux嵌入式开发)
二.流程
第一阶段:linux平台上的开发,包括vi,gcc,gdb,make,jdk,tomcat,mysql..linux基本操作
第二阶段:加厚C功底或java
第三阶段:《unix环境高级编程》
第 ......
本函数的分析很难具体,因为涉及了很多arm的处理器型号和每个型号对应的cache和write buffer的工作方式,这片文章只是做简单的记录,方便以后了解更深后回来再来完善这个函数。
这个函数的调用过程如:start_kernel()->setup_arch()->paging_init()->memtable_init( ......
Q. How do I install Languages in Linux after installation? I don’t have any language specific support installed but need to install the same. I’m using both RHEL 5 and CentOS 5.
A. Yellow dog Updater, Modified, a package manager for RPM-compatible Linux systems such as Cento ......
方法一: Expect 实现交互
UNIX 窗口中 输入以下命令:
expect ftplinux.txt 10.0.15.22 ftplinux.txt
ftplinux.txt 中内容如下:
--开始-----
spawn ftp [lindex $argv 0]
expect "Name(*):"
send "ftp\r"
expect "Password:*"
send "hell05a\r"
expect "ftp> ......