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

📄 600-602.html

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

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Surfing the Internet with the World Wide Web</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=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

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

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

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

<!--PAGES=600-602//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="597-600.html">Previous</A></TD>

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

<TD><A HREF="602-604.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Most search engines also allow you to use quotation marks (&#147;&#148;) to search for phrases. Check your search engine&#146;s help for specific details.<HR></FONT>

</BLOCKQUOTE>

<P>You&#146;ll probably find that even a search engine lists too many sites to look through. You can reduce the number of sites you find by narrowing your search. Correctly using some simple terms&#151;AND, OR, and NOT&#151;can help narrow thousands of sites down to just a few.

</P>

<P>These aren&#146;t your everyday AND, OR, and NOT. They come from the symbolic logic system developed by a 19th-century mathematician named George Boole. Boolean searches use a basic syntax made up of operators and search terms. Because the terms don&#146;t work quite the same as in English grammar, make sure that you get them straight. Table 31.2 shows examples of how to use AND, OR, and NOT.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.2</B> Useful Boolean Expressions

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="25%" ALIGN="LEFT">Expression

<TH WIDTH="75%" ALIGN="LEFT">Description

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TD VALIGN="TOP">AND or &#43;

<TD>Returns pages that contain all your search terms. If all words aren&#146;t on the page, the page isn&#146;t displayed. Use AND or &#43; when you have dissimilar terms and want to narrow the results to a few precise hits. For example, <TT>BMW AND roadster</TT> or <TT>BMW &#43; roadster</TT> will display only pages that contain both BMW and roadster on the page.

<TR>

<TD VALIGN="TOP">OR

<TD>Returns pages that contain any of your search terms. Use OR to return pages with any of the terms listed in your search. For example, <TT>BMW</TT> OR <TT>roadster</TT> will display all pages that contain either BMW, roadster, or both.

<TR>

<TD VALIGN="TOP">NOT

<TD>Returns pages that don&#146;t contain words specified in your search (not supported by all search engines).

<TD COLSPAN="2"><HR>

</TABLE>

<P>Don&#146;t be afraid to experiment. Try several different searches with the same goal in mind so that you can get a better feel for the results that some of these expressions and your search words or phrases return. You&#146;ll find that some experimentation with search terms will help you become more adept at narrowing your selections to a manageable size.

</P>

<P>Now that I&#146;ve gone over URLs and searching on the Web, let&#146;s look at some of the other access methods listed earlier in Table 31.1 in more detail. Each section provides a description of the service, how to access it with and without a browser, and a sampling of what information the service returns.</P>

<H3><A NAME="Heading6"></A><FONT COLOR="#000077">Using FTP with a Web Browser</FONT></H3>

<P>FTP, or File Transfer Protocol, is the method that the Internet uses to exchange files between computers. No matter what you&#146;re searching for&#151;software, documentation, FAQ lists, programs, or just about anything else&#151;you probably can get a copy through anonymous FTP.

</P>

<P>Anonymous FTP is a service that lets you retrieve data from around the Internet without having an account on that machine. By using anonymous FTP, you can access any files that the systems administrators on the remote system have made publicly available.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR>&#149; <B>See</B> &#147;Using FTP for Remote File Transfer,&#148; <B>p. 580</B><HR></FONT>

</BLOCKQUOTE>

<P>FTP supports ASCII-mode transfers for text files, and binary-mode transfers for other types of files. Fortunately, most Web clients automatically determine the file type for you, so you don&#146;t have to worry about it. You usually can determine the type of archive or compression program that was used on the file by looking at the file extension. Table 31.3 lists the most common file extensions you&#146;ll encounter.

</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.3</B> Common File Extensions on Binary Files Available Through FTP

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="25%" ALIGN=LEFT>Extension

<TH WIDTH="75%" ALIGN=LEFT>Description

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TD>.Z

<TD>Compressed with the UNIX <TT>compress</TT> program

<TR>

<TD VALIGN="TOP">.z

<TD>Probably compressed with the GNU <TT>gzip</TT> program or the UNIX <TT>compress</TT> program

<TR>

<TD>.gz

<TD>Compressed with the GNU <TT>gzip</TT> program

<TR>

<TD>.tar

<TD>An archive of several files created by the UNIX <TT>tar</TT> program

<TR>

<TD>.zip

<TD>An archive of several files created by <TT>pkzip</TT>

<TD COLSPAN="2"><HR>

</TABLE>

<P>Sometimes you&#146;ll find files that have been created by more than one of these methods. For example, the file programs.tar.Z is an archive of several files created by the <TT>tar</TT> utility and then compressed with the <TT>compress</TT> utility.</P>

<P>To use a Web client such as Netscape (which has built-in FTP support) to perform anonymous FTP transfers, replace the protocol portion of the URL with &#147;ftp.&#148; For example, to start an anonymous FTP session to <B>sunsite.unc.edu</B>, use the following URL:</P>

<DL>

<DD><A HREF="ftp://sunsite.unc.edu">ftp://sunsite.unc.edu</A>

</DL>

<P>This URL causes your Web client to try to make an FTP connection to <B>sunsite.unc.edu</B> and log you in as an anonymous FTP session. After your FTP session is established, you can navigate through directories and transfer files by clicking the hyperlinks displayed.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Most anonymous FTP servers request that you use your e-mail address as your password. If you have problems, check that your e-mail preferences are set correctly in your browser.<HR></FONT>

</BLOCKQUOTE>

<P>To specify a non-anonymous FTP session in Netscape, enter

</P>

<!-- CODE SNIP //-->

<PRE>

ftp://username@ftp.startup.com

</PRE>

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

<P>where <I>username</I> is your user name and <I>ftp.startup.com</I> is where you want to go. You&#146;ll then be prompted to enter your password.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>When you select a text file to transfer from a remote server in an FTP session, most Web clients display the file on-screen. You need to save the file to disk via a menu selection. Some Web browsers allow you to specify loading a file to disk rather than to the screen.<HR></FONT>

</BLOCKQUOTE>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>ON THE WEB:&nbsp;&nbsp;</B><BR>For a listing of FTP sites via the Web, see the following page:

<DL>

<DD><A HREF=""><B>http://www.yahoo.com/Computers_and_Internet/Internet/FTP_Sites/</B></A>

</DL>

<HR></FONT>

</BLOCKQUOTE>

<H3><A NAME="Heading7"></A><FONT COLOR="#000077">Using <I>archie</I> with a Web Browser

</FONT></H3>

<P>Just like with the Web, one major problem with anonymous FTP is figuring out where the files that you&#146;re interested in are located on the Internet. To help users locate files, the <TT>archie</TT> system was created. <TT>archie</TT> is basically a search engine for anonymous FTP sites.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="597-600.html">Previous</A></TD>

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

<TD><A HREF="602-604.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 + -