⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 48.html

📁 著名的linux英雄站点的文档打包
💻 HTML
字号:
<HTML><HEAD><TITLE>
linux知识宝库/基础知识/linux重要知识</TITLE>
<META http-equiv=content-type content="text/html; charset=gb2312">
<META content=linuxtips,linux,php,mysql,apache name=keywords>
<STYLE type=text/css>A:link {
	COLOR: #666666; TEXT-DECORATION: underline
}
A:active {
	COLOR: #666666; TEXT-DECORATION: underline
}
A:visited {
	COLOR: #666666; TEXT-DECORATION: underline
}
A:hover {
	COLOR: #708090; TEXT-DECORATION: none
}
.articletitle {
	FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #335588; LINE-HEIGHT: 26px; FONT-FAMILY: trebuchet ms, arial, verdana, helvetica, sans-serif; TEXT-DECORATION: none
}
INPUT {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
TEXTAREA {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.bginput {
	BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #999999 1px solid; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #f9f9f9
}
.text {
	BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #cccccc 1px solid
}
SELECT {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: 宋体; BACKGROUND-COLOR: #ffffff
}
.firstalt {
	BACKGROUND-COLOR: #eeeeee
}
.secondalt {
	BACKGROUND-COLOR: #ffffff
}
.bigfont {
	FONT-SIZE: 45px; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.normalfont {
	FONT-SIZE: 12px; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.middlefont {
	FONT-SIZE: 11px; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.smallfont {
	FONT-SIZE: 9px; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.smallbold {
	FONT-WEIGHT: bold; COLOR: #000000
}
.articletitle {
	FONT-WEIGHT: bold; FONT-SIZE: 18px; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.subhead {
	FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #006699; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
#content A:link {
	COLOR: #3366cc; TEXT-DECORATION: underline
}
#content A:active {
	COLOR: #3366cc; TEXT-DECORATION: underline
}
#content A:visited {
	COLOR: #3366cc; TEXT-DECORATION: underline
}
#content A:hover {
	COLOR: #9966cc; TEXT-DECORATION: none
}
.content {
	FONT-SIZE: 14px; LINE-HEIGHT: 130%; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.titlefont {
	FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: verdana, arial, helvetica, sans-serif,宋体
}
.bodyline {
	BORDER-RIGHT: #aebdc4 1px solid; BORDER-TOP: #aebdc4 1px solid; BORDER-LEFT: #aebdc4 1px solid; BORDER-BOTTOM: #aebdc4 1px solid; BACKGROUND-COLOR: #ffffff
}
.cattitle {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; LETTER-SPACING: 1px
}
.tableoutline {
	BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid
}
.root_td {
	PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Verdana; HEIGHT: 22px; BACKGROUND-COLOR: #ffffff; font-color: #000000
}
.child_td {
	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 12px; PADDING-BOTTOM: 3px; COLOR: #000000; FONT-FAMILY: Verdana; HEIGHT: 22px; BACKGROUND-COLOR: #f5f5f5; TEXT-DECORATION: underline
}
#cattitle A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
#cattitle A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
#cattitle A:active {
	COLOR: #000000; TEXT-DECORATION: none
}
#cattitle A:hover {
	COLOR: #000000; TEXT-DECORATION: none
}
</STYLE>

<SCRIPT language=JavaScript type=text/javascript>
<!--
if (parent.frames.length > 0) {
    parent.location.href = self.document.location
}
function ToggleNode(nodeObject, imgObject){
             if(nodeObject.style.display == '' || nodeObject.style.display == 'inline'){
               nodeObject.style.display = 'none';
               imgObject.src = 'images/plus.gif'/*tpa=http://www.linuxhero.com/docs/images/plus.gif*/;
             }else{
               nodeObject.style.display = 'inline';
               imgObject.src = 'images/minus.gif'/*tpa=http://www.linuxhero.com/docs/images/minus.gif*/;
            }
}
-->
</SCRIPT>

<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0 marginwidth="0" 
marginheight="0">
<CENTER>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  
  <TR>
    <TD vAlign=top>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=296 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=76 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=100 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=98 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=79 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=103 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=26 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR>
        <TR>
          <TD colSpan=3><A title=linux知识宝库 
            href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83 
            src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0 
            name=header_r1_c1></A></TD>
            <TD colSpan=3>
              <form action="http://www.linuxhero.com/docs/search.html" method=get>
                <table 
                        style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid" 
                        cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
                  <tbody> 
                  <tr> 
                    <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"> 
                      <div align=center><font class=normalfont>搜索文章: 
                        <input type=hidden value=result name=action2>
                          <input type=radio checked value=title name=type>标题 
                          <input type=radio value=content name=type>内容 
                          <input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
                        </font></div>
                    </td>
                  </tr>
                  <tr> 
                    <td noWrap> 
                      <div align="center"> 
                        <input maxlength=100 size=30 name=keyword2>
                      </div>
                    </td>
                  </tr></tbody> 
                </table>
              </form>
            </TD>
            <TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
          <TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
        <TR>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22 
            src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0 
            name=header_r2_c1></TD>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
              <DIV align=right><FONT class=normalfont>当前位置: 
              <A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
              <font color="#FF6699">&gt;&gt;</font>
<A href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</A>                 | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
            </TD>
          <TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff 
        border=0>
         <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
              
              <TR>
                <TD vAlign=top align=middle width="60%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                  background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>linux重要知识</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>1,Q:在 linux 中怎样实现类似 DOS 环境下的 AUTOEXEC.BAT 批处理功能?<br>
A:将脚本添加到 /etc/rc.d/rc.local 中即可。这是由 linux 启动时的第一个进程 init 控制的。init 进程还可以自动启动 /etc/rc、/etc/rc.d、/etc/rc?.d 目录下的许多脚本文件。<br>
2,Q:linux 中 NE2000 兼容网卡的安装?<br>
A:目前市场上 NE2000 兼容网卡比较多,如 D-Link DE220p 等。如果 linux 不能检测到这些网卡,则可以用手动的方法安装。以 D-Link DE220p 网卡为例,在 Red hat Linux6.0 和 Turbo Linux 下可以这样安装:首先检测出网卡的 IO 端口号和 irp 号,然后启动进入 Linux,在 /etc/rc.d/rc.sysinit 文件中加入语句(假设网卡的 IO=0x240,irp=0x5):<br>
modprobe ne.o io=0x240 irq=5<br>
然后启动 linux 即可。<br>
对于 Slackware linux,可以编辑 /etc/rc.d/rc.modules 文件,将 NE2000 网卡驱动前的注释符号“#”去掉,设置网卡 IO 号即可,即:<br>
/sbin/modprobe ne io=0x240<br>
3,Q:Slackware linux3.4 的 LILO 被破坏后的恢复:<br>
A:一台同时安装 Slackware linux3.4、Windows98、WindowsNT 的机器,在 Windows98 重新安装后,主引导区的 LILO 丢失,不能引导 Linux,按如下步骤处理后,就可以修复 LILO: 首先用 BOOT 盘引导机器,在 BOOT: 提示符后输入 mount root=/dev/hda4 回车,其中 hda4 是 Linux 的引导分区,应当根据你的具体情况而定;这样机器就会启动进入到 Linux 状态,然后以 root 用户登录,进入 /sbin 目录,运行 liloconfig 程序,选第 6 项“Reinstall LILO using the existing lilo.conf”,这样就会恢复原来的 LILO 设置。<br>
4,Q:怎样将 LILO 备份到软盘上?<br>
A:在 /sbin 目录下运行命令 lilo -b /dev/fd0 即可。备份的软盘可以用来启动 linux 系统,与硬盘启动没有区别。<br>
5,Q:能不能从 DOS 下启动 linux?<br>
A:能。例如 Red Hat linux6.0 的光盘上有一个程序 loadlin,它就可以从 DOS 下启动 Linux。条件是你要有一个 Linux 内核映像文件 vmlinuz(可在 Linux 安装光盘上找),还要知道 Linux 的启动分区。命令的执行格式为:<br>
loadlin vmlinuz root=/dev/hda4 ; 其中 /dev/hda4 为 linux 的 root 文件系统所在的硬盘分区<br>
可以用这种方法恢复主引导分区中遭到破坏的 LILO 系统。<br>
6,Q:linux 能否实现用户登录运行脚本?<br>
A:可以。用户登录时,Bash 首先执行全局登录脚本(由 root 建立) /etc/profile,然后在用户起始目录下依次寻找 .bash_profile、.bash_login、.profile 三个文件,执行最先找到的一个。可以用这种办法像 Netware 一样为不同的用户定制运行环境。<br>
此外,用户退出登录时还可以运行 .bash_logout 脚本。<br>
7,Q:在 linux 中给命令指定别名(alias):<br>
A:如果命令或命令序列太长,或不符合用户的习惯,那么为它指定一个别名是不错的办法。虽然可以为命令建立“链接”解决长文件名的问题,但对于带命令行参数的命令,链接就无能为力了。而指定别名则可以解决此类所有问题。只要举一些例子就可以了:<br>
alias l='ls -l' ;用 l 代替 ls -l 命令(Xenix 下就有类似的 l 命令)<br>
alias cd..='cd ..' ;用 cd.. 代替 cd .. 命令(对在 DOS 下使用惯了 cd.. 的人帮助很大)<br>
alias md='mkdir' ;用 md 代替 mkdir 命令(对在 DOS 下…)<br>
alias c:='mount /dev/hda1 /mnt/c & cd /mnt/c' ;用 c: 命令代替命令序列:安装 DOS 分区,再进入<br>
8,Q:一台机器为 Win98 与 linux 双启动,默认启动 OS 为 Linux,现想改变默认启动为 Win98,怎么办?<br>
A:简单。编辑 lilo.conf 文件,在其文件的第四行后加上 default=dos,存盘退出即可。<br>
9,Q:系统的关闭:<br>
A:#shutdown –r +10 (十分钟后系统自动重启):<br>
# shutdown –r 13:00 (13:00整,系统自动重启)<br>
# shutdown –r now (系统立即重启)<br>
# reboot (系统立即重启)<br>
# haltsys (关闭系统)<br>
# shutdown –h (关闭系统)<br>
10,Q:使用虚拟控制台:<br>
A:一般新安装的 linux 有 4 个虚拟控制台,热键为: ALT+F1,ALT+F2,ALT+F3,ALT+F4。<br>
例如:登录后按 Alt+F2 键,这时又可以看到 login: 提示符, 这个就是第二个虚拟控制台。<br>
11,Q:强行退出 X-windows:<br>
A:当工作在 X-windows 界面时,想迅速切换到字符界面,只需使用热键 Ctrl+Alt+Backspace。<br>
12,Q:好的口令应满足什么条件?<br>
A:通常,好的口令应当易于记忆但却不易被?校

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -