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

📄 567-568.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Using Linux:System Maintenance</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0789716232//-->

<!--TITLE=Using Linux//-->

<!--AUTHOR=William Ball//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Que//-->

<!--CHAPTER=31//-->

<!--PAGES=567-568//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="564-567.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch32/569-573.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading14"></A><FONT COLOR="#000077">Compressing Manual Pages</FONT></H4>

<P>The Linux manual is divided into several sections, and many users only need information from the first section (user commands). You can compress the rest of the man sections, and even store them on a removable tape to save space:

</P>

<!-- CODE SNIP //-->

<PRE>

#ls /usr/man

man1 man2 man3 man4 man5 man6 man7 man8 man9 manl mann

#tar -cvz -f /dev/nrft0 /usr/man[2-9]

</PRE>

<!-- END CODE SNIP //-->

<P>You can then selectively extract sections of the manual or single commands as needed:

</P>

<!-- CODE SNIP //-->

<PRE>

#cd /home/manextract

#tar -xvz -f /dev/nrft0 usr/man2

</PRE>

<!-- END CODE SNIP //-->

<P>Again, it&#146;s sometimes safest to extract an archive in a directory created to do just this, in case any surprises occur. After the extraction, you can use the <TT>cp</TT> command to move the extracted files back into the <TT>/usr/man/man2</TT> directory:</P>

<!-- CODE SNIP //-->

<PRE>

#pwd

/home/manextract

#cd usr/man2

#cp * /usr/man/man2

</PRE>

<!-- END CODE SNIP //-->

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>SEE ALSO</B><BR>&#149; For more information about using the Linux man pages, see page 11.<HR></FONT>

</BLOCKQUOTE>

<H4 ALIGN="LEFT"><A NAME="Heading15"></A><FONT COLOR="#000077">Compressing Unused Documents and Directories</FONT></H4>

<P>Man pages obviously aren&#146;t the only candidates for compression when disk space gets tight. By knowing where &#147;the bodies are buried&#148; on your system, you can often find a way to restore underutilized space. For instance, perhaps you are engaged in a project to code a sequel to Doom: Doom B. Unfortunately, things didn&#146;t work out with the licensing, and you&#146;re ready to put Doom B on the back burner. The following command would help you move along:

</P>

<!-- CODE SNIP //-->

<PRE>

#tar -cvz -f /dev/rft0 /projects/DoomB /home/lib/DoomB

/usr/local/DoomB_graphics,

</PRE>

<!-- END CODE SNIP //-->

<P>This last directory, <TT>/usr/local/DoomB_graphics</TT>, contains graphics, which usually don&#146;t compress well. However, they are often not used by many users, and can sometimes be archived until needed.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="564-567.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch32/569-573.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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