📄 node23.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>The /etc directory</TITLE>
<META NAME="description" CONTENT="The /etc directory">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/sag.css">
</HEAD>
<BODY LANG="EN" >
<A NAME="tex2html562" HREF="node24.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node24.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/next_motif.gif"></A> <A NAME="tex2html560" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/up_motif.gif"></A> <A NAME="tex2html554" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/previous_motif.gif"></A> <A NAME="tex2html564" HREF="node1.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/contents_motif.gif"></A> <A NAME="tex2html565" HREF="node108.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html563" HREF="node24.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node24.html">The /dev directory</A>
<B>Up:</B> <A NAME="tex2html561" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html">The root filesystem</A>
<B> Previous:</B> <A NAME="tex2html555" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html">The root filesystem</A>
<BR> <P>
<A NAME="730"> </A><H2><A NAME="SECTION00421000000000000000"><tt>/etc</tt>目录</A></H2>
<P>
<tt>/etc</tt><A NAME="732"> </A>目录包含很多文件。
下面说明其中的一些。其他的你应该知道它们属于哪个程序,并阅读该程序的man页。
许多网络配置文件也在<tt>/etc</tt><A NAME="734"> </A>中,它们在《网络管理指南》中说明。
<DL ><DT><STRONG><tt>/etc/rc</tt><A NAME="736"> </A> or <tt>/etc/rc.d</tt><A NAME="738"> </A> or <tt>/etc/rc?.d</tt><A NAME="740"> </A></STRONG>
<DD>
启动、或改变运行级时运行的scripts或scripts的目录,更详细的信息见关于<tt>init</tt><A NAME="742"> </A>的章。
<P>
<DT><STRONG><tt>/etc/passwd</tt><A NAME="744"> </A></STRONG>
<DD>
用户数据库,其中的域给出了用户名、真实姓名、家目录、加密的口令和用户的其他信息。格式见<em>passwd</em><A NAME="746"> </A>的man页。
<P>
<DT><STRONG><tt>/etc/fdprm</tt><A NAME="748"> </A></STRONG>
<DD>
软盘参数表。说明不同的软盘格式。用<tt>setfdprm</tt><A NAME="750"> </A>设置。更多的信息见<em>setfdprm</em><A NAME="752"> </A>的man页。
<P>
<DT><STRONG><tt>/etc/fstab</tt><A NAME="754"> </A></STRONG>
<DD>
启动时<tt>mount -a</tt>命令(在<tt>/etc/rc</tt><A NAME="756"> </A>或等效的启动文件中)自动mount的文件系统列表。
Linux下,也包括用<tt>swapon -a</tt>启用的swap区的信息。
见<A HREF="node46.html#subsecmount" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node46.html#subsecmount">4.8.5</A>节和<em>mount</em><A NAME="758"> </A>的man页。
<P>
<DT><STRONG><tt>/etc/group</tt><A NAME="760"> </A></STRONG>
<DD>
类似<tt>/etc/passwd</tt><A NAME="762"> </A>,但说明的不是用户而是组。见<em>group</em><A NAME="764"> </A>的man页。
<P>
<DT><STRONG><tt>/etc/inittab</tt><A NAME="766"> </A></STRONG>
<DD>
<tt>init</tt><A NAME="768"> </A>的配置文件。
<P>
<DT><STRONG><tt>/etc/issue</tt><A NAME="770"> </A></STRONG>
<DD>
<tt>getty</tt><A NAME="772"> </A>在登录提示符前的输出信息。
通常包括系统的一段短说明或欢迎信息。内容由系统管理员确定。
<P>
<DT><STRONG><tt>/etc/magic</tt><A NAME="774"> </A></STRONG>
<DD>
<tt>file</tt><A NAME="776"> </A>的配置文件。
包含不同文件格式的说明,<tt>file</tt><A NAME="778"> </A>基于它猜测文件类型。
见<em>magic</em><A NAME="780"> </A>和<em>file</em><A NAME="782"> </A>的man页。
<P>
<DT><STRONG><tt>/etc/motd</tt><A NAME="784"> </A></STRONG>
<DD>
<b>Message Of The Day</b>,成功登录后自动输出。内容由系统管理员确定。
经常用于通告信息,如计划关机时间的警告。
<P>
<DT><STRONG><tt>/etc/mtab</tt><A NAME="787"> </A></STRONG>
<DD>
当前安装的文件系统列表。由scripts初始化,并由<tt>mount</tt><A NAME="789"> </A>命令自动更新。
需要一个当前安装的文件系统的列表时使用,例如<tt>df</tt><A NAME="791"> </A>命令。
<P>
<DT><STRONG><tt>/etc/shadow</tt><A NAME="793"> </A></STRONG>
<DD>
在安装了影子口令软件的系统上的影子口令文件。影子口令文件将<tt>/etc/passwd</tt><A NAME="795"> </A>文件中的加密口令
移动到<tt>/etc/shadow</tt><A NAME="797"> </A>中,而后者只对<tt>root</tt>可读。这使破译口令更困难。
<P>
<DT><STRONG><tt>/etc/login.defs</tt><A NAME="799"> </A></STRONG>
<DD>
<tt>login</tt><A NAME="801"> </A>命令的配置文件。
<P>
<DT><STRONG><tt>/etc/printcap</tt><A NAME="803"> </A></STRONG>
<DD>
类似<tt>/etc/termcap</tt><A NAME="805"> </A>,但针对打印机。语法不同。
<P>
<DT><STRONG><tt>/etc/profile</tt><A NAME="807"> </A>, <tt>/etc/csh.login</tt><A NAME="809"> </A>, <tt>/etc/csh.cshrc</tt><A NAME="811"> </A></STRONG>
<DD>
登录或启动时Bourne或C shells执行的文件。这允许系统管理员为所有用户建立全局缺省环境。各shell见man页。
<P>
<DT><STRONG><tt>/etc/securetty</tt><A NAME="813"> </A></STRONG>
<DD>
确认安全终端,即哪个终端允许<tt>root</tt>登录。一般只列出虚拟控制台,这样就不可能(至少很困难)通过modem或网络
闯入系统并得到超级用户特权。
<P>
<DT><STRONG><tt>/etc/shells</tt><A NAME="815"> </A></STRONG>
<DD>
列出可信任的shell。<tt>chsh</tt><A NAME="817"> </A>命令允许用户在本文件指定范围内改变登录shell。
提供一台机器FTP服务的服务进程<tt>ftpd</tt><A NAME="819"> </A>检查用户shell是否列在
<tt>/etc/shells</tt><A NAME="821"> </A>文件中,如果不是将不允许该用户登录。
<P>
<DT><STRONG><tt>/etc/termcap</tt><A NAME="823"> </A></STRONG>
<DD>
终端性能数据库。说明不同的终端用什么"转义序列"控制。
写程序时不直接输出转义序列(这样只能工作于特定品牌的终端),而是从<tt>/etc/termcap</tt><A NAME="825"> </A>中
查找要做的工作的正确序列。这样,多数的程序可以在多数终端上运行。见<em>termcap</em><A NAME="827"> </A>、
<em>curs_termcap</em><A NAME="829"> </A>和<em>terminfo</em><A NAME="831"> </A>的man页。
<P>
</DL><HR><A NAME="tex2html562" HREF="node24.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node24.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/next_motif.gif"></A> <A NAME="tex2html560" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/up_motif.gif"></A> <A NAME="tex2html554" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/previous_motif.gif"></A> <A NAME="tex2html564" HREF="node1.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/contents_motif.gif"></A> <A NAME="tex2html565" HREF="node108.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html563" HREF="node24.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node24.html">The /dev directory</A>
<B>Up:</B> <A NAME="tex2html561" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html">The root filesystem</A>
<B> Previous:</B> <A NAME="tex2html555" HREF="node22.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node22.html">The root filesystem</A>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sun Jun 29 13:31:22 EEST 1997</I>
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -