﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-青蛙學堂-随笔分类-Linux</title><link>http://www.cnitblog.com/yide/category/8904.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 13 Sep 2022 12:03:24 GMT</lastBuildDate><pubDate>Tue, 13 Sep 2022 12:03:24 GMT</pubDate><ttl>60</ttl><item><title>linux vi 目录</title><link>http://www.cnitblog.com/yide/archive/2022/09/12/96055.html</link><dc:creator>青蛙學堂</dc:creator><author>青蛙學堂</author><pubDate>Mon, 12 Sep 2022 07:57:00 GMT</pubDate><guid>http://www.cnitblog.com/yide/archive/2022/09/12/96055.html</guid><wfw:comment>http://www.cnitblog.com/yide/comments/96055.html</wfw:comment><comments>http://www.cnitblog.com/yide/archive/2022/09/12/96055.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yide/comments/commentRss/96055.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yide/services/trackbacks/96055.html</trackback:ping><description><![CDATA[<div style="background-color: #eeeeee; font-size: 13px; border-color: #cccccc; border-image: initial; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><br /><br /><span style="color: #800000; ">1</span>.&nbsp;列出目录内容&nbsp;ls<br /><br /><span style="color: #800000; ">2</span>.&nbsp;进入目录:&nbsp;cd&nbsp;<br /><br /><span style="color: #800000; ">3</span>.&nbsp;创建文件<br />&nbsp;&nbsp;&nbsp;touch&nbsp;&nbsp;&nbsp;test2.txt<br /><br /><span style="color: #800000; ">4</span>.&nbsp;打开文件<br />&nbsp;&nbsp;&nbsp;&nbsp;vi&nbsp;test2.txt<br /><br /><span style="color: #800000; ">5</span>.&nbsp;切换至插入模式（Insert&nbsp;mode）编辑文件<br />&nbsp;&nbsp;&nbsp;插入模式输入字符<br />&nbsp;&nbsp;&nbsp;您目前处于「插入模式（Insert&nbsp;mode）」，您就只能一直输入文字，如果您发现输错了字！想用光标键往回移动，将该字删除，就要先按一下「ESC」键转到「命令行模式（command&nbsp;mode）」再删除文字。<br />&nbsp;&nbsp;&nbsp;按「i」切换进入插入模式「insert&nbsp;mode」，按<span style="font-weight: bold;">"</span><span style="font-weight: bold;">i</span><span style="font-weight: bold;">"</span>进入插入模式后是从光标当前位置开始输入文件；<br />　　按「a」进入插入模式后，是从目前光标所在位置的下一个位置开始输入文字；<br />　　按「o」进入插入模式后，是插入新的一行，从行首开始输入文字。<br />&nbsp;<br /><span style="color: #800000; ">6</span>.&nbsp;esc&nbsp;进入命令行模式（command&nbsp;mode）<br />&nbsp;&nbsp;&nbsp;命令模式删除字符，使用光标<br />&nbsp;&nbsp;&nbsp;在「命令行模式（command&nbsp;mode）」下按一下字母「i」就可以进入「插入模式（Insert&nbsp;mode）」，这时候你就可以开始输入文字了。<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><span style="color: #800000; ">7</span>.在命令行模式删除文字<br />　　「x」：每按一次，删除光标所在位置的<span style="font-weight: bold;">"</span><span style="font-weight: bold;">后面</span><span style="font-weight: bold;">"</span>一个字符。<br />　　「<span style="color: #008000; ">#</span><span style="color: #008000; ">x」：例如，「6x」表示删除光标所在位置的"后面"6个字符。</span><span style="color: #008000; "><br /></span>　　「X」：大写的X，每按一次，删除光标所在位置的<span style="font-weight: bold;">"</span><span style="font-weight: bold;">前面</span><span style="font-weight: bold;">"</span>一个字符。<br />　　「<span style="color: #008000; ">#</span><span style="color: #008000; ">X」：例如，「20X」表示删除光标所在位置的"前面"20个字符。</span><span style="color: #008000; "><br /></span>　　「dd」：删除光标所在行。<br />　　「<span style="color: #008000; ">#</span><span style="color: #008000; ">dd」：从光标所在行开始删除#行</span><span style="color: #008000; "><br /></span><span style="color: #800000; ">8</span>.<span style="color: #0000FF; ">Last</span>&nbsp;line&nbsp;mode下命令，进入输入命令模式<br />&nbsp;&nbsp;&nbsp;&nbsp;输入：后才可以输入命令<br />　　在使用「<span style="color: #0000FF; ">last</span>&nbsp;line&nbsp;mode」之前，请记住先按「ESC」键确定您已经处于「command&nbsp;mode」下后，再按「：」冒号即可进入「<span style="color: #0000FF; ">last</span>&nbsp;line&nbsp;mode」。&nbsp;&nbsp;<br />&nbsp;<br /><span style="color: #800000; ">9</span>.搜索及替换命令&nbsp;:<br />/pattern：从光标开始处向文件尾搜索pattern<br />?pattern：从光标开始处向文件首搜索pattern<br />n：在同一方向重复上一次搜索命令,完成搜索后直接按n<br />N：在反方向上重复上一次搜索命令&nbsp;&nbsp;,上一次完成后直接按N<br />&nbsp;&nbsp;&nbsp;<br /><span style="color: #800000; ">10</span>.退出vi及保存文件<br />　　在「命令行模式（command&nbsp;mode）」下，按一下「：」冒号键进入「<span style="color: #0000FF; ">Last</span>&nbsp;line&nbsp;mode」，例如：<br />:&nbsp;w&nbsp;filename&nbsp;（输入&nbsp;「w&nbsp;filename」将文章以指定的文件名filename保存）<br />:&nbsp;wq&nbsp;(输入「wq」，存盘并退出vi)<br />:&nbsp;q!&nbsp;(输入q!，&nbsp;不存盘强制退出vi)<br />&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp; &nbsp;</div><img src ="http://www.cnitblog.com/yide/aggbug/96055.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yide/" target="_blank">青蛙學堂</a> 2022-09-12 15:57 <a href="http://www.cnitblog.com/yide/archive/2022/09/12/96055.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>FW:结识正能量，跟对人 </title><link>http://www.cnitblog.com/yide/archive/2014/04/03/89393.html</link><dc:creator>青蛙學堂</dc:creator><author>青蛙學堂</author><pubDate>Thu, 03 Apr 2014 09:45:00 GMT</pubDate><guid>http://www.cnitblog.com/yide/archive/2014/04/03/89393.html</guid><wfw:comment>http://www.cnitblog.com/yide/comments/89393.html</wfw:comment><comments>http://www.cnitblog.com/yide/archive/2014/04/03/89393.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/yide/comments/commentRss/89393.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yide/services/trackbacks/89393.html</trackback:ping><description><![CDATA[<header class="entry-header">&nbsp; 
<h1 class="entry-title"><a href="http://www.xiaobapo.com/?p=8" rel="bookmark">结识正能量，跟对人</a> </h1><!-- .comments-link --></header><!-- .entry-header -->

<div class="entry-content">
<p>&#8220;沙子是废物，水泥也是废物，但他们混在一起是混凝土，就是精品；大米是精品，汽油也是精品，但他们混在一起就是废物。是精品还是废物不重要，跟谁混，很重要! ＂</p>
<p>&nbsp;朋友不是乱交的，每天在一起喝酒的不一定是真朋友，每天在一起混的也不一定是永远的朋友。人生要交的四位朋友：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;<br />1、交一个欣赏你的朋友，即便在你穷困潦倒的时候反而会更安慰你、帮助你。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;<br />2、交一个有正能量的朋友，在你情绪低落的时候陪伴你、鼓励你。&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;<br />3、交一个为你领路的朋友，自愿做你的垫脚石，带你走过泥泞、拨开迷雾。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;<br />4、交一个肯指点你的朋友，时刻提醒你、监督你，让你时刻发现自己的不足。!财富不是永远的朋友，朋友却是永远的财富</p></div><img src ="http://www.cnitblog.com/yide/aggbug/89393.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yide/" target="_blank">青蛙學堂</a> 2014-04-03 17:45 <a href="http://www.cnitblog.com/yide/archive/2014/04/03/89393.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux--分区2</title><link>http://www.cnitblog.com/yide/archive/2012/05/03/79535.html</link><dc:creator>青蛙學堂</dc:creator><author>青蛙學堂</author><pubDate>Thu, 03 May 2012 07:35:00 GMT</pubDate><guid>http://www.cnitblog.com/yide/archive/2012/05/03/79535.html</guid><wfw:comment>http://www.cnitblog.com/yide/comments/79535.html</wfw:comment><comments>http://www.cnitblog.com/yide/archive/2012/05/03/79535.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yide/comments/commentRss/79535.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yide/services/trackbacks/79535.html</trackback:ping><description><![CDATA[<h1><font color="#3a81d3"><br /></font></h1><table cellspacing="0" cellpadding="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; empty-cells: show; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; table-layout: fixed; width: 978px; color: #000000; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 12px; line-height: 18px; "><tbody style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; "><tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; "><td id="postmessage_22430898" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />1、/分区。用于存储系统文件。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />2、swap，即交换分区，也是一种文件系统，它的作用是作为Linux的虚拟内存。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />在Windows下，虚拟内存是一个文件：pagefile.sys；而Linux下，虚拟内存需要使用独立分区，这样做的目的据说是为了提高虚拟内存的性能。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />3、/home：是用户文件夹所在的地方。如果独立划分/home，即使Ubuntu不能启动，也可以用Live CD启动来取得自己的文件资料。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />4、/boot：包含了操作系统的内核和在启动系统过程中所要用到的文件。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />在很多老旧的教程中，都会让用户在/boot目录上挂载一个大小为100MB左右的独立分区，并推荐把该/boot放在硬盘的前面&#8212;&#8212;即1024柱面之前。事实上，那是Lilo无法引导1024柱面后的操作系统内核的时代的遗物了。当然，也有人说，独立挂载/boot的好处是可以让多个Linux共享一个/boot。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />其实，无论是基于上述的哪种理由，都没有必要把/boot分区独立出来。首先，Grub可以引导1024柱面后的Linux内核；其次，即使是安装有多个Linux，也完全可以不共享/boot。因为/boot目录的大小通常都非常小，大约20MB，分一个100MB的分区无疑是一种浪费，而且还把把硬盘分的支离破碎的，不方便管理。另外，如果让两个Linux共享一个/boot，每次升级内核，都会导致Grub的配置文件冲突，带来不必要的麻烦。而且，不独立/boot分区仅仅占用了根目录下的大约20MB左右的空间，根本不会对根目录的使用造成任何影响。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />但值得注意的是，随着硬盘容量的增大，无法引导Linux内核的现象再次出现，这也就是著名的137GB限制。很遗憾，Grub是无法引导137GB之后的分区中的Linux内核的。如果你不巧遇到了这样的情况，你就要考虑把/boot独立挂载到位于137GB前方的独立分区中，或者索性就把 Linux的分区都往前移动，让根目录所在分区位于137GB之前。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />5、/usr/local：是 Linux系统存放软件的地方。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />建议把/opt，/usr或/usr/local独立出来的教程，基本上也是非常老的了。使用Ubuntu时，我们一般都是使用系统的软件包管理器安装软件，很少自己编译安装软件。而建议独立/usr，/opt，/usr/local的理由无非是为了重装系统时不再重新编译软件而直接使用早先编译的版本。不过对于大多数普通用户来说，这个建议通常是没有意义的。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />6、/var：是系统日志记录分区。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />7、/tmp分区，用来存放临时文件。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />建议把/var和/tmp独立出来的教程通常是面向服务器的。因为高负载的服务器通常会产生很多日志文件、临时文件，这些文件经常改变，因此把/var，/tmp独立出来有利于提高服务器性能。但如果你用Ubuntu是做桌面的，或从来不关心过系统日志这东西，就没有必要独立的为/var和/tmp挂载分区。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />还有些老旧的教程中建议把Linux安装在主分区中，或在/boot下挂载一个主分区。事实上，这也是不需要的。Linux的所有分区都可以位于逻辑分区中。所以请放心的把Linux安装在逻辑分区中吧。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />---<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />Linux的文件系统（分区格式）主要有ext3、ReiserFS、XFS、JFS等。同时Linux也可以读写使用FAT、FAT32和NTFS文件系统的分区。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />Ubuntu默认的文件系统是ext3。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />或许有人会告诉你其他文件系统会有什么什么优点，ext3会有什么什么不好，但如果你对文件系统并不了解的话，我的建议就是使用默认的ext3，默认的设置可能不一定是性能最好的，但对普通用户一定是最稳定最安全最适合的。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />最大分区大小：ext3是4TB，ReiseFS是16TB。FAT32在Windows XP和Windows 2000里的最大分区是32GB；而Linux中的FAT32则可以支持到2TB。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />最大文件大小：ext3是2GB－4GB，ReiseFS是8TB，FAT32是4GB。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />---<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />如果你准备在硬盘里只安装Ubuntu一个操作系统的话，建议你采用三分区方案：<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />1）&#8220;/&#8221;分区：使用ext3文件系统；分区容量为10GB－15GB。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />2）&#8220;swap&#8221;分区：用于交换空间。内存小于或等于 512MB，swap分区容量为内存大小的2倍；内存大于512MB的，swap分区容量等于内存大小。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />3）&#8220;/home&#8221;分区：使用ext3文件系统；分区容量为&#8220;/&#8221;和&#8220;swap&#8221;以外的剩余空间<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />在linux系统中至少必须有两个挂载点(磁盘分区)，分别是 / 及 swap ，其余是否要将其他的挂载点独立分割出来则视你的规划需求而定。可参考以下建议：<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />swap的大小约等同你的内存大小，或稍大<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />初次接触的新手或硬盘空间有限 Desktop的安装建议：<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />挂载点&nbsp; &nbsp;&nbsp;&nbsp;装置&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;说明<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/dev/hda1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;可用空间 - swap大小后的所有空间<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />swap&nbsp; &nbsp;&nbsp; &nbsp;/dev/hda2&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;大约内存大小 建议至少512Mb<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />高级用户 Desktop的安装建议：<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />挂载点&nbsp; &nbsp;&nbsp;&nbsp;装置&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;说明<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; /dev/hda1&nbsp; &nbsp;&nbsp; &nbsp; 15G<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/home&nbsp; &nbsp;&nbsp;&nbsp;/dev/hda2&nbsp; &nbsp;&nbsp; &nbsp; 最大的剩余空间<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/boot&nbsp; &nbsp;&nbsp;&nbsp;/dev/hda3&nbsp; &nbsp; 128MB左右<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />swap&nbsp; &nbsp;&nbsp;&nbsp;/dev/hda5&nbsp; &nbsp; 大约内存大小(建议至少512MB)<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />高级用户 Server的安装建议：<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />挂载点&nbsp; &nbsp;&nbsp;&nbsp;装置&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 说明<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; /dev/hda1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;15G<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/home&nbsp; &nbsp;&nbsp;&nbsp;/dev/hda2&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;最大的剩余空间<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/boot&nbsp; &nbsp;&nbsp;&nbsp;/dev/hda3&nbsp; &nbsp; 128MB左右<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />swap&nbsp; &nbsp;&nbsp;&nbsp;/dev/hda5&nbsp; &nbsp; 大约内存大小(建议至少512MB)<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />/var&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; /dev/hda6&nbsp; &nbsp; 视服务器功能决定大小<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />安装Liunx Ubuntu磁盘分区的配置与建议事项就说到这里，有了以上的相关说明相信要将自己的硬盘规划好，应该不会是件难事啦。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " /><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />Linux 规定了主分区（或者扩展分区）占用 1 至 16 号码中的前 4 个号码。以第一个 IDE 硬盘为例说明，主分区（或者扩展分区）占用了 hda1、hda2、hda3、hda4，而逻辑分区占用了 hda5 到 hda16 等 12 个号码。因此，Linux 下面每一个硬盘总共最多有 16 个分区。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />因此 hda1- hda4 是主区的意思。 hda5以后是逻辑分区！！</td></tr></tbody></table><img src ="http://www.cnitblog.com/yide/aggbug/79535.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yide/" target="_blank">青蛙學堂</a> 2012-05-03 15:35 <a href="http://www.cnitblog.com/yide/archive/2012/05/03/79535.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux--分区</title><link>http://www.cnitblog.com/yide/archive/2012/05/03/79534.html</link><dc:creator>青蛙學堂</dc:creator><author>青蛙學堂</author><pubDate>Thu, 03 May 2012 07:22:00 GMT</pubDate><guid>http://www.cnitblog.com/yide/archive/2012/05/03/79534.html</guid><wfw:comment>http://www.cnitblog.com/yide/comments/79534.html</wfw:comment><comments>http://www.cnitblog.com/yide/archive/2012/05/03/79534.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yide/comments/commentRss/79534.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yide/services/trackbacks/79534.html</trackback:ping><description><![CDATA[<strong style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">1.消失了的分区<br /></strong><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">&nbsp;&nbsp; &nbsp; &nbsp; 在WinPE下，我将一块硬盘分成一个主分区和四个逻辑分区，主分区指派驱动器号C，四个逻辑分区均不指派驱动器号：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">这会出现什么情况？结果是在我的电脑中你只能看到一个C盘，其他四个盘都不见了：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><strong style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">2.将分区装入文件夹</strong><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">接下来，我在C盘建了boot，home，user，tmp四个文件夹：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">再打开磁盘管理，按下边的步骤将第一个逻辑分区装入一个空白的NTFS文件夹中（C：\boot）：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">再按上边同样的步骤，将第二个逻辑分区装入C：\home文件夹中，将第三个逻辑分区装入C：\user文件夹中。</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><strong style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">3.有什么变化了吗？</strong><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">这会发生什么变化？打开C盘，好像看不出有什么变化：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">再打开boot文件夹，建一个txt文件，好像一切仍是正常：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">打开磁盘管理，我们为第一个逻辑驱动器指派一个驱动器号D，到我的电脑中打开D盘看下：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">&nbsp;&nbsp; &nbsp; &nbsp;txt不是在C：\boot文件夹中吗？怎么到D盘来了？再到C：\boot看下，txt仍在，对其进行修改保存，再看D：\mzwu.com.txt，也被修改了！</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">&nbsp;&nbsp; &nbsp; &nbsp;想到什么了吗？没错，打开C：\boot，实际打开的是D盘，换句话说，C：\boot是D盘的入口，以此类推，home变成了第二个逻辑分区的入口，user变成了第三个逻辑分区的入口。</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">&nbsp;&nbsp; &nbsp; &nbsp;再看下将分区装入C：\boot前后，C：\boot文件夹属性的变化：</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><strong style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">4.Linux分区和挂载点</strong><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><span style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px">Linux下将分区挂载到挂载点，和上边Windows下将磁盘分区装入空白的NTFS文件夹其实是一样的。Linux根目录就是上边的C盘，不同的是Windows可以为其他分区指派驱动器号，Linux不行。一个挂载点就是一个文件夹，将分区挂载到一个挂载点，挂载点就成了分区的入口。没有挂载分区的挂载点将使用根目录的空间，没有挂载到挂载点的分区是无法访问的，如上边第四个逻辑分区。</span><br style="line-height: 21px; font-family: arial, 宋体, sans-serif; font-size: 14px" /><img src ="http://www.cnitblog.com/yide/aggbug/79534.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yide/" target="_blank">青蛙學堂</a> 2012-05-03 15:22 <a href="http://www.cnitblog.com/yide/archive/2012/05/03/79534.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>RedFlag linux 安装flash插件</title><link>http://www.cnitblog.com/yide/archive/2012/05/02/79500.html</link><dc:creator>青蛙學堂</dc:creator><author>青蛙學堂</author><pubDate>Wed, 02 May 2012 05:26:00 GMT</pubDate><guid>http://www.cnitblog.com/yide/archive/2012/05/02/79500.html</guid><wfw:comment>http://www.cnitblog.com/yide/comments/79500.html</wfw:comment><comments>http://www.cnitblog.com/yide/archive/2012/05/02/79500.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/yide/comments/commentRss/79500.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/yide/services/trackbacks/79500.html</trackback:ping><description><![CDATA[下载 rpm安装包后，关闭浏览器，然后再装就好了.<img src ="http://www.cnitblog.com/yide/aggbug/79500.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/yide/" target="_blank">青蛙學堂</a> 2012-05-02 13:26 <a href="http://www.cnitblog.com/yide/archive/2012/05/02/79500.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>