slackware-current/slackbook/html/basic-network-commands-web.html
Patrick J Volkerding 75a4a592e5 Slackware 13.37
Mon Apr 25 13:37:00 UTC 2011
Slackware 13.37 x86_64 stable is released!

Thanks to everyone who pitched in on this release: the Slackware team,
the folks producing upstream code, and linuxquestions.org for providing
a great forum for collaboration and testing.

The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD.  Please consider supporting the Slackware
project by picking up a copy from store.slackware.com.  We're taking
pre-orders now, and offer a discount if you sign up for a subscription.

As always, thanks to the Slackware community for testing, suggestions,
and feedback.  :-)

Have fun!
2018-05-31 22:45:18 +02:00

215 lines
7.7 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>Browsers</title>
<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" />
<link rel="HOME" title="Slackware Linux Essentials" href="index.html" />
<link rel="UP" title="Basic Network Commands" href="basic-network-commands.html" />
<link rel="PREVIOUS" title="email" href="basic-network-commands-email.html" />
<link rel="NEXT" title="FTP Clients" href="basic-network-commands-ftp.html" />
<link rel="STYLESHEET" type="text/css" href="docbook.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<th colspan="3" align="center">Slackware Linux Essentials</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href="basic-network-commands-email.html"
accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 13 Basic Network Commands</td>
<td width="10%" align="right" valign="bottom"><a href="basic-network-commands-ftp.html"
accesskey="N">Next</a></td>
</tr>
</table>
<hr align="LEFT" width="100%" />
</div>
<div class="SECT1">
<h1 class="SECT1"><a id="BASIC-NETWORK-COMMANDS-WEB"
name="BASIC-NETWORK-COMMANDS-WEB">13.8 Browsers</a></h1>
<p>The first thing that people think about when they hear the word Internet is
&#8220;surfing the net&#8221;. Or looking at websites using a web browser. This is
probably by far the most popular use of the Internet for the average user.</p>
<p>Slackware provides popular graphical web browsers in the &#8220;XAP&#8221; series, as
well as text mode browsers in the &#8220;N&#8221; series. We'll take a quick look at some
of the most common options below.</p>
<div class="SECT2">
<h2 class="SECT2"><a id="AEN4776" name="AEN4776">13.8.1 <tt
class="COMMAND">lynx</tt></a></h2>
<p><tt class="COMMAND">lynx</tt>(1) is a text-based web browser. It is a very quick way
of looking up something on the Internet. Sometimes graphics just get in the way if you
know exactly what you're after.</p>
<p>To start <tt class="COMMAND">lynx</tt>, just type <tt class="COMMAND">lynx</tt> at the
prompt:</p>
<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="SCREEN">
<samp class="PROMPT">%</samp> <kbd class="USERINPUT">lynx</kbd>
</pre>
</td>
</tr>
</table>
<div class="FIGURE"><a id="FIG-BASIC-NETWORK-COMMANDS-WEB-LYNX"
name="FIG-BASIC-NETWORK-COMMANDS-WEB-LYNX"></a>
<p><b>Figure 13-5. Lynx default start page</b></p>
<p><img src="basic-network-commands/lynx.png" /></p>
</div>
<p>You may want to specify a site for <tt class="COMMAND">lynx</tt> to open to:</p>
<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="SCREEN">
<samp class="PROMPT">%</samp> <kbd class="USERINPUT">lynx http://www.slackware.com</kbd>
</pre>
</td>
</tr>
</table>
<p><tt class="COMMAND">lynx</tt> prints the command keys and what they do at the bottom
of the screen. The up and down arrow keys move around the document, <kbd
class="USERINPUT">Enter</kbd> selects the highlighted link, and the <kbd
class="USERINPUT">left arrow</kbd> goes back to the previous page. Typing <kbd
class="USERINPUT">d</kbd> will download the currently selected file. The <kbd
class="USERINPUT">g</kbd> command brings up the Go prompt, where you can give <tt
class="COMMAND">lynx</tt> a URL to open.</p>
<p>There are many other commands in <tt class="COMMAND">lynx</tt>. You can either consult
the man page, or type <kbd class="USERINPUT">h</kbd> to get the help screen for more
information.</p>
</div>
<div class="SECT2">
<h2 class="SECT2"><a id="AEN4813" name="AEN4813">13.8.2 <tt
class="COMMAND">links</tt></a></h2>
<p>Just like <tt class="COMMAND">lynx</tt>, <tt class="COMMAND">links</tt> is a textmode
web browser, where you do all the navigation using the keyboard. However, when you press
the <kbd class="USERINPUT">Esc</kbd> key, it will activate a very convenient pulldown
menu on the top of the screen. This makes it very easy to use, without having to learn
all the keyboard shortcuts. People who do not use a text browser every day will
appreciate this feature.</p>
<p><tt class="COMMAND">links</tt> seems to have better support for both frames and
tables, when compared to <tt class="COMMAND">lynx</tt>.</p>
<div class="FIGURE"><a id="FIG-BASIC-NETWORK-COMMANDS-WEB-LINKS"
name="FIG-BASIC-NETWORK-COMMANDS-WEB-LINKS"></a>
<p><b>Figure 13-6. Links, with the file menu open</b></p>
<p><img src="basic-network-commands/links.png" /></p>
</div>
</div>
<div class="SECT2">
<h2 class="SECT2"><a id="AEN4831" name="AEN4831">13.8.3 <tt
class="COMMAND">wget</tt></a></h2>
<p><tt class="COMMAND">wget</tt>(1) is a command line utility that will download files
from a specified URL. While not an actual web-browser, <tt class="COMMAND">wget</tt> is
used primarily to grab whole or partial web sites for offline viewing, or for fast
download of single files from HTTP or FTP servers instead. The basic syntax is:</p>
<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="SCREEN">
<samp class="PROMPT">%</samp> <kbd class="USERINPUT">wget &lt;url&gt;</kbd>
</pre>
</td>
</tr>
</table>
<p>You can also pass options. For example, this will download the Slackware web site:</p>
<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="SCREEN">
<samp class="PROMPT">%</samp> <kbd
class="USERINPUT">wget --recursive http://www.slackware.com</kbd>
</pre>
</td>
</tr>
</table>
<p><tt class="COMMAND">wget</tt> will create a <tt
class="FILENAME">www.slackware.com</tt> directory and store the files in there, just as
the site does.</p>
<p><tt class="COMMAND">wget</tt> can also download files from FTP sites; just specify an
FTP URL instead of an HTTP one.</p>
<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="SCREEN">
<samp class="PROMPT">%</samp> <kbd
class="USERINPUT">wget ftp://ftp.gnu.org/gnu/wget/wget-1.8.2.tar.gz</kbd>
--12:18:16-- ftp://ftp.gnu.org/gnu/wget/wget-1.8.2.tar.gz
=&#62; `wget-1.8.2.tar.gz'
Resolving ftp.gnu.org... done.
Connecting to ftp.gnu.org[199.232.41.7]:21... connected.
Logging in as anonymous ... Logged in!
==&#62; SYST ... done. ==&#62; PWD ... done.
==&#62; TYPE I ... done. ==&#62; CWD /gnu/wget ... done.
==&#62; PORT ... done. ==&#62; RETR wget-1.8.2.tar.gz ... done.
Length: 1,154,648 (unauthoritative)
100%[==================================&#62;] 1,154,648 209.55K/s ETA 00:00
12:18:23 (209.55KB/s) - `wget-1.8.2.tar.gz' saved [1154648]
</pre>
</td>
</tr>
</table>
<p><tt class="COMMAND">wget</tt> has many more options, which make it nice for site
specific scripts (web site mirroring and so forth). The man page should be consulted for
more information.</p>
</div>
</div>
<div class="NAVFOOTER">
<hr align="LEFT" width="100%" />
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="basic-network-commands-email.html"
accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href="index.html"
accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href="basic-network-commands-ftp.html"
accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">email</td>
<td width="34%" align="center" valign="top"><a href="basic-network-commands.html"
accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top">FTP Clients</td>
</tr>
</table>
</div>
</body>
</html>