summaryrefslogtreecommitdiff
path: root/slackbook/html/basic-network-commands.html
blob: 7ee7875111b5e65b06e859644a5a8115e45e034e (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
<!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>Basic Network Commands</title>
<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" />
<link rel="HOME" title="Slackware Linux Essentials" href="index.html" />
<link rel="PREVIOUS" title="Shutting Down Properly"
href="essential-sysadmin-shutdown.html" />
<link rel="NEXT" title="traceroute" href="basic-network-commands-traceroute.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="CHAPTER" 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="essential-sysadmin-shutdown.html"
accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom"></td>
<td width="10%" align="right" valign="bottom"><a
href="basic-network-commands-traceroute.html" accesskey="N">Next</a></td>
</tr>
</table>

<hr align="LEFT" width="100%" />
</div>

<div class="CHAPTER">
<h1><a id="BASIC-NETWORK-COMMANDS" name="BASIC-NETWORK-COMMANDS"></a>Chapter 13 Basic
Network Commands</h1>

<div class="TOC">
<dl>
<dt><b>Table of Contents</b></dt>

<dt>13.1 <a href="basic-network-commands.html#BASIC-NETWORK-COMMANDS-PING"><tt
class="COMMAND">ping</tt></a></dt>

<dt>13.2 <a href="basic-network-commands-traceroute.html"><tt
class="COMMAND">traceroute</tt></a></dt>

<dt>13.3 <a href="basic-network-commands-dns.html">DNS Tools</a></dt>

<dt>13.4 <a href="basic-network-commands-finger.html"><tt
class="COMMAND">finger</tt></a></dt>

<dt>13.5 <a href="basic-network-commands-telnet.html"><tt
class="COMMAND">telnet</tt></a></dt>

<dt>13.6 <a href="basic-network-commands-ssh.html">The Secure shell</a></dt>

<dt>13.7 <a href="basic-network-commands-email.html">email</a></dt>

<dt>13.8 <a href="basic-network-commands-web.html">Browsers</a></dt>

<dt>13.9 <a href="basic-network-commands-ftp.html">FTP Clients</a></dt>

<dt>13.10 <a href="basic-network-commands-talk.html">Talking to Other People</a></dt>
</dl>
</div>

<p>A network consists of several computers connected together. The network can be as
simple as a few computers connected in your home or office, or as complicated as a large
university network or even the entire Internet. When your computer is part of a network,
you have access to those systems either directly or through services like mail and the
web.</p>

<p>There are a variety of networking programs that you can use. Some are handy for
performing diagnostics to see if everything is working properly. Others (like mail
readers and web browsers) are useful for getting your work done and staying in contact
with other people.</p>

<div class="SECT1">
<h1 class="SECT1"><a id="BASIC-NETWORK-COMMANDS-PING"
name="BASIC-NETWORK-COMMANDS-PING">13.1 <tt class="COMMAND">ping</tt></a></h1>

<p><tt class="COMMAND">ping</tt>(8) sends an ICMP <var class="LITERAL">ECHO_REQUEST</var>
packet to the specified host. If the host responds, you get an ICMP packet back. Sound
strange? Well, you can &#8220;ping&#8221; an IP address to see if a machine is alive. If
there is no response, you know something is wrong. Here is an example conversation
between two Linux users:</p>

<a id="AEN4428" name="AEN4428"></a>
<blockquote class="BLOCKQUOTE">
<p class="LITERALLAYOUT"><span class="emphasis"><i class="EMPHASIS">User
A</i></span>:&nbsp;Loki's&nbsp;down&nbsp;again.<br />
<span class="emphasis"><i class="EMPHASIS">User
B</i></span>:&nbsp;Are&nbsp;you&nbsp;sure?<br />
<span class="emphasis"><i class="EMPHASIS">User
A</i></span>:&nbsp;Yeah,&nbsp;I&nbsp;tried&nbsp;pinging&nbsp;it,&nbsp;but&nbsp;there's&nbsp;no&nbsp;response.</p>
</blockquote>

<p>It's instances like these that make <tt class="COMMAND">ping</tt> a very useful
day-to-day command. It provides a very quick way to see if a machine is up and connected
to the network. The basic syntax is:</p>

<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="SCREEN">
<samp class="PROMPT">%</samp> <kbd class="USERINPUT">ping www.slackware.com</kbd>
</pre>
</td>
</tr>
</table>

<p>There are, of course, several options that can be specified. Check the <tt
class="COMMAND">ping</tt>(1) man page 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="essential-sysadmin-shutdown.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-traceroute.html" accesskey="N">Next</a></td>
</tr>

<tr>
<td width="33%" align="left" valign="top">Shutting Down Properly</td>
<td width="34%" align="center" valign="top">&nbsp;</td>
<td width="33%" align="right" valign="top"><tt class="COMMAND">traceroute</tt></td>
</tr>
</table>
</div>
</body>
</html>