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

📄 ch04_01.htm

📁 the unix power tools
💻 HTM
字号:
<HTML><!--Distributed by F --><HEAD><TITLE>[Chapter 4] Organizing Your Home Directory</TITLE><METANAME="DC.title"CONTENT="UNIX Power Tools"><METANAME="DC.creator"CONTENT="Jerry Peek, Tim O'Reilly &amp; Mike Loukides"><METANAME="DC.publisher"CONTENT="O'Reilly &amp; Associates, Inc."><METANAME="DC.date"CONTENT="1998-08-04T21:32:39Z"><METANAME="DC.type"CONTENT="Text.Monograph"><METANAME="DC.format"CONTENT="text/html"SCHEME="MIME"><METANAME="DC.source"CONTENT="1-56592-260-3"SCHEME="ISBN"><METANAME="DC.language"CONTENT="en-US"><METANAME="generator"CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"><LINKREV="made"HREF="mailto:online-books@oreilly.com"TITLE="Online Books Comments"><LINKREL="up"HREF="part01.htm"TITLE="I. Making Yourself at Home "><LINKREL="prev"HREF="ch03_08.htm"TITLE="3.8 What tty Am I On? "><LINKREL="next"HREF="ch04_02.htm"TITLE="4.2 A bin Directory for Your Programs and Scripts "></HEAD><BODYBGCOLOR="#FFFFFF"TEXT="#000000"><DIVCLASS="htmlnav"><H1><IMGSRC="gifs/smbanner.gif"ALT="UNIX Power Tools"USEMAP="#srchmap"BORDER="0"></H1><MAPNAME="srchmap"><AREASHAPE="RECT"COORDS="0,0,466,58"HREF="index.htm"ALT="UNIX Power Tools"><AREASHAPE="RECT"COORDS="467,0,514,18"HREF="jobjects/fsearch.htm"ALT="Search this book"></MAP><TABLEWIDTH="515"BORDER="0"CELLSPACING="0"CELLPADDING="0"><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch03_08.htm"TITLE="3.8 What tty Am I On? "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: 3.8 What tty Am I On? "BORDER="0"></A></TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><B><FONTFACE="ARIEL,HELVETICA,HELV,SANSERIF"SIZE="-1">Chapter 4</FONT></B></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch04_02.htm"TITLE="4.2 A bin Directory for Your Programs and Scripts "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 4.2 A bin Directory for Your Programs and Scripts "BORDER="0"></A></TD></TR></TABLE>&nbsp;<HRALIGN="LEFT"WIDTH="515"TITLE="footer"></DIV><DIVCLASS="CHAPTER"><H1CLASS="chapter"><ACLASS="title"NAME="UPT-CHP-4">4. Organizing Your Home Directory</A></H1><DIVCLASS="htmltoc"><P><B>Contents:</B><BR><ACLASS="sect1"HREF="#UPT-ART-4780"TITLE="4.1 What? Me, Organized? ">What? Me, Organized? </A><BR><ACLASS="sect1"HREF="ch04_02.htm"TITLE="4.2 A bin Directory for Your Programs and Scripts ">A bin Directory for Your Programs and Scripts </A><BR><ACLASS="sect1"HREF="ch04_03.htm"TITLE="4.3 Organizing Nonexecutable Scripts ">Organizing Nonexecutable Scripts </A><BR><ACLASS="sect1"HREF="ch04_04.htm"TITLE="4.4 Directories for Emacs Hacks ">Directories for Emacs Hacks </A><BR><ACLASS="sect1"HREF="ch04_05.htm"TITLE="4.5 Private (Personal) Directories ">Private (Personal) Directories </A><BR><ACLASS="sect1"HREF="ch04_06.htm"TITLE="4.6 Naming Files ">Naming Files </A><BR><ACLASS="sect1"HREF="ch04_07.htm"TITLE="4.7 Make More Directories! ">Make More Directories! </A><BR><ACLASS="sect1"HREF="ch04_08.htm"TITLE="4.8 Making Directories Made Easier ">Making Directories Made Easier </A><BR><ACLASS="sect1"HREF="ch04_09.htm"TITLE="4.9 Setting Up vi with the .exrc File ">Setting Up vi with the .exrc File </A><BR><ACLASS="sect1"HREF="ch04_10.htm"TITLE="4.10 Find All Command Versions with whereiz ">Find All Command Versions with whereiz </A></P><P></P></DIV><DIVCLASS="sect1"><H2CLASS="sect1"><ACLASS="title"NAME="UPT-ART-4780">4.1 What? Me, Organized? </A></H2><PCLASS="para"><ACLASS="indexterm"NAME="UPT-ART-4780-IX-HOME-DIRECTORY-ORGANIZING"></A>Computers and offices have one thing in common: it's easy to losethings. If you walk into my office, you'll see stacks of paper on topof other stacks of paper, with a few magazines and business cardsscattered in. I can often find things, but I'd be lying if I saidthat I could <EMCLASS="emphasis">always</EM> find that article I was reading the other day!</P><PCLASS="para">When you look at a new computer user's home directory, you often seesomething that's similar to my office. You see a huge number ofunrelated files, with obscure names. He hasn't created anysubdirectories, aside from those the system administrator told him heneeded; and those probably aren't even being used. His home directoryprobably contains programs for several different projects, personalmail, notes from meetings, a few data files, some half-finisheddocumentation, a spreadsheet for something he started last month buthas now forgotten, etc.</P><PCLASS="para">Remember that a computer's filesystem isn't that much different fromany other filing system. If you threw all of your papers into onegiant filing cabinet without sorting them into different topics andsubtopics, the filing cabinet wouldn't do you any good at all: itwould just be a mess. On a computer, the solution to this problem isto sort your files into <EMCLASS="emphasis">directories</EM>, which are analogous to thefiling cabinets and drawers.</P><PCLASS="para">The <SPANCLASS="link">UNIX filesystem (<ACLASS="linkend"HREF="ch01_19.htm"TITLE="The Tree Structure of the Filesystem ">1.19</A>)</SPAN>can help you keep all of your material neatlysorted. Your directories are like filing cabinets, with dividers and folders inside them.In this chapter, we'll give some hints for organizing your computer&quot;office.&quot; Of course, things occasionally get misplaced even in themost efficient offices.Articles<ACLASS="xref"HREF="ch17_20.htm"TITLE="grepping a Directory Tree (and a Gotcha) ">17.20</A>and<ACLASS="xref"HREF="ch17_21.htm"TITLE="lookfor: Which File Has that Word? ">17.21</A>show some scripts that use the<EMCLASS="emphasis">find</EM>and <EMCLASS="emphasis">grep</EM>commands to help you find files that are misplaced.</P><DIVCLASS="sect1info"><PCLASS="SECT1INFO">- <SPANCLASS="authorinitials">ML</SPAN></P></DIV></DIV></DIV><DIVCLASS="htmlnav"><P></P><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><TABLEWIDTH="515"BORDER="0"CELLSPACING="0"CELLPADDING="0"><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch03_08.htm"TITLE="3.8 What tty Am I On? "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: 3.8 What tty Am I On? "BORDER="0"></A></TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="book"HREF="index.htm"TITLE="UNIX Power Tools"><IMGSRC="gifs/txthome.gif"SRC="gifs/txthome.gif"ALT="UNIX Power Tools"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch04_02.htm"TITLE="4.2 A bin Directory for Your Programs and Scripts "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 4.2 A bin Directory for Your Programs and Scripts "BORDER="0"></A></TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172">3.8 What tty Am I On? </TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="index"HREF="index/idx_0.htm"TITLE="Book Index"><IMGSRC="gifs/index.gif"SRC="gifs/index.gif"ALT="Book Index"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172">4.2 A bin Directory for Your Programs and Scripts </TD></TR></TABLE><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><IMGSRC="gifs/smnavbar.gif"SRC="gifs/smnavbar.gif"USEMAP="#map"BORDER="0"ALT="The UNIX CD Bookshelf Navigation"><MAPNAME="map"><AREASHAPE="RECT"COORDS="0,0,73,21"HREF="../index.htm"ALT="The UNIX CD Bookshelf"><AREASHAPE="RECT"COORDS="74,0,163,21"HREF="index.htm"ALT="UNIX Power Tools"><AREASHAPE="RECT"COORDS="164,0,257,21"HREF="../unixnut/index.htm"ALT="UNIX in a Nutshell"><AREASHAPE="RECT"COORDS="258,0,321,21"HREF="../vi/index.htm"ALT="Learning the vi Editor"><AREASHAPE="RECT"COORDS="322,0,378,21"HREF="../sedawk/index.htm"ALT="sed &amp; awk"><AREASHAPE="RECT"COORDS="379,0,438,21"HREF="../ksh/index.htm"ALT="Learning the Korn Shell"><AREASHAPE="RECT"COORDS="439,0,514,21"HREF="../lrnunix/index.htm"ALT="Learning the UNIX Operating System"></MAP></DIV></BODY></HTML>

⌨️ 快捷键说明

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