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

📄 ch14_01.htm

📁 the unix power tools
💻 HTM
字号:
<HTML><!--Distributed by F --><HEAD><TITLE>[Chapter 14] Moving Around in a Hurry</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:36:58Z"><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="part03.htm"TITLE="III. Working with the Filesystem "><LINKREL="prev"HREF="part03.htm"TITLE="III. Working with the Filesystem "><LINKREL="next"HREF="ch14_02.htm"TITLE="14.2 Using Relative and Absolute Pathnames "></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="PART"HREF="part03.htm"TITLE="III. Working with the Filesystem "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: III. Working with the Filesystem "BORDER="0"></A></TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><B><FONTFACE="ARIEL,HELVETICA,HELV,SANSERIF"SIZE="-1">Chapter 14</FONT></B></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch14_02.htm"TITLE="14.2 Using Relative and Absolute Pathnames "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 14.2 Using Relative and Absolute Pathnames "BORDER="0"></A></TD></TR></TABLE>&nbsp;<HRALIGN="LEFT"WIDTH="515"TITLE="footer"></DIV><DIVCLASS="CHAPTER"><H1CLASS="chapter"><ACLASS="title"NAME="UPT-CHP-14">14. Moving Around in a Hurry</A></H1><DIVCLASS="htmltoc"><P><B>Contents:</B><BR><ACLASS="sect1"HREF="#UPT-ART-7230"TITLE="14.1 Getting Around the Filesystem ">Getting Around the Filesystem </A><BR><ACLASS="sect1"HREF="ch14_02.htm"TITLE="14.2 Using Relative and Absolute Pathnames ">Using Relative and Absolute Pathnames </A><BR><ACLASS="sect1"HREF="ch14_03.htm"TITLE="14.3 What Good Is a Current Directory? ">What Good Is a Current Directory? </A><BR><ACLASS="sect1"HREF="ch14_04.htm"TITLE="14.4 How Does UNIX Find Your Current Directory? ">How Does UNIX Find Your Current Directory? </A><BR><ACLASS="sect1"HREF="ch14_05.htm"TITLE="14.5 Saving Time When You Change Directories: cdpath ">Saving Time When You Change Directories: cdpath </A><BR><ACLASS="sect1"HREF="ch14_06.htm"TITLE="14.6 The Shells' pushd and popd Commands ">The Shells' pushd and popd Commands </A><BR><ACLASS="sect1"HREF="ch14_07.htm"TITLE="14.7 Nice Aliases for pushd ">Nice Aliases for pushd </A><BR><ACLASS="sect1"HREF="ch14_08.htm"TITLE="14.8 Quick cds with Aliases ">Quick cds with Aliases </A><BR><ACLASS="sect1"HREF="ch14_09.htm"TITLE="14.9 cd by Directory Initials ">cd by Directory Initials </A><BR><ACLASS="sect1"HREF="ch14_10.htm"TITLE="14.10 Variables Help You Find Directories and Files ">Variables Help You Find Directories and Files </A><BR><ACLASS="sect1"HREF="ch14_11.htm"TITLE="14.11 Finding (Anyone's) Home Directory, Quickly ">Finding (Anyone's) Home Directory, Quickly </A><BR><ACLASS="sect1"HREF="ch14_12.htm"TITLE="14.12 Marking Your Place with a Shell Variable ">Marking Your Place with a Shell Variable </A><BR><ACLASS="sect1"HREF="ch14_13.htm"TITLE="14.13 Which Directory Am I in, Really? ">Which Directory Am I in, Really? </A><BR><ACLASS="sect1"HREF="ch14_14.htm"TITLE="14.14 Automatic Setup When You Enter/Exit a Directory ">Automatic Setup When You Enter/Exit a Directory </A></P><P></P></DIV><DIVCLASS="sect1"><H2CLASS="sect1"><ACLASS="title"NAME="UPT-ART-7230">14.1 Getting Around the Filesystem </A></H2><PCLASS="para">How quickly can you move around the UNIX filesystem?Can you locate any file or directory on your filesystem with both itsabsolute and relative pathnames?How can symbolic links help you and hurt you?</P><PCLASS="para">A lot of UNIX users don't realize how much they'll be helped bycompletely understanding a fewfilesystem basics.Here are some of the most important concepts and tricks to know:</P><ULCLASS="itemizedlist"><LICLASS="listitem"><PCLASS="para">Using relative and absolute pathnames:article<ACLASS="xref"HREF="ch14_02.htm"TITLE="Using Relative and Absolute Pathnames ">14.2</A>.</P></LI><LICLASS="listitem"><PCLASS="para">What good is a current directory?article<ACLASS="xref"HREF="ch14_03.htm"TITLE="What Good Is a Current Directory? ">14.3</A>.</P></LI><LICLASS="listitem"><PCLASS="para">Saving time and typing when you change directories with <EMCLASS="emphasis">cdpath</EM>:article<ACLASS="xref"HREF="ch14_05.htm"TITLE="Saving Time When You Change Directories: cdpath ">14.5</A>.</P></LI><LICLASS="listitem"><PCLASS="para">Directory stacks keep a list of directories you're using and let you getto them quickly:articles<ACLASS="xref"HREF="ch14_06.htm"TITLE="The Shells' pushd and popd Commands ">14.6</A>,<ACLASS="xref"HREF="ch14_07.htm"TITLE="Nice Aliases for pushd ">14.7</A>.</P></LI><LICLASS="listitem"><PCLASS="para">Quick <EMCLASS="emphasis">cd</EM> aliases:article<ACLASS="xref"HREF="ch14_08.htm"TITLE="Quick cds with Aliases ">14.8</A>.</P></LI><LICLASS="listitem"><PCLASS="para">Using variables and a tilde (<CODECLASS="literal">~</CODE>) to help you find directories and files:articles<ACLASS="xref"HREF="ch14_10.htm"TITLE="Variables Help You Find Directories and Files ">14.10</A>,<ACLASS="xref"HREF="ch14_11.htm"TITLE="Finding (Anyone's) Home Directory, Quickly ">14.11</A>.</P></LI><LICLASS="listitem"><PCLASS="para">A <EMCLASS="emphasis">mark</EM> alias to mark directory for <EMCLASS="emphasis">cd</EM>'ing back:article<ACLASS="xref"HREF="ch14_12.htm"TITLE="Marking Your Place with a Shell Variable ">14.12</A>.</P></LI><LICLASS="listitem"><PCLASS="para">Problems when <EMCLASS="emphasis">cd</EM>'ing through symbolic links:article<ACLASS="xref"HREF="ch14_13.htm"TITLE="Which Directory Am I in, Really? ">14.13</A>.</P></LI><LICLASS="listitem"><PCLASS="para">Automatic setup for entering and exiting a directory:article<ACLASS="xref"HREF="ch14_14.htm"TITLE="Automatic Setup When You Enter/Exit a Directory ">14.14</A>.</P></LI></UL><DIVCLASS="sect1info"><PCLASS="SECT1INFO">- <SPANCLASS="authorinitials">JP</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="PART"HREF="part03.htm"TITLE="III. Working with the Filesystem "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: III. Working with the Filesystem "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="ch14_02.htm"TITLE="14.2 Using Relative and Absolute Pathnames "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 14.2 Using Relative and Absolute Pathnames "BORDER="0"></A></TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172">III. Working with the Filesystem </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">14.2 Using Relative and Absolute Pathnames </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 + -