summaryrefslogtreecommitdiff
path: root/misc/slackbook/html/basic-network-commands-web.html
blob: e3f3b6c5ff89efb54fcfb02a2e162f53ce373d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!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>