mirror of
git://slackware.nl/current.git
synced 2024-12-26 09:58:59 +01:00
5a12e7c134
Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P.
279 lines
9.1 KiB
HTML
279 lines
9.1 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>FTP Clients</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="Browsers" href="basic-network-commands-web.html" />
|
|
<link rel="NEXT" title="Talking to Other People"
|
|
href="basic-network-commands-talk.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-web.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-talk.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-FTP"
|
|
name="BASIC-NETWORK-COMMANDS-FTP">13.9 FTP Clients</a></h1>
|
|
|
|
<p>FTP stands for the File Transfer Protocol. It allows you to send and receive files
|
|
between two computers. There is the FTP server and the FTP client. We discuss the client
|
|
in this section.</p>
|
|
|
|
<p>For the curious, the “client” is you. The “server” is the
|
|
computer that answers your FTP request and lets you login. You will download files from
|
|
and upload files to the server. The client cannot accept FTP connections, it can only
|
|
connect to servers.</p>
|
|
|
|
<div class="SECT2">
|
|
<h2 class="SECT2"><a id="AEN4871" name="AEN4871">13.9.1 <tt
|
|
class="COMMAND">ftp</tt></a></h2>
|
|
|
|
<p>To connect to an FTP server, simply run the <tt class="COMMAND">ftp</tt>(1) command
|
|
and specify the host:</p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0" width="100%">
|
|
<tr>
|
|
<td>
|
|
<pre class="SCREEN">
|
|
<samp class="PROMPT">%</samp> <kbd class="USERINPUT">ftp <hostname> [port]</kbd>
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>If the host is running an FTP server, it will ask for a username and password. You can
|
|
log in as yourself or as “anonymous”. Anonymous FTP sites are very popular
|
|
for software archives. For example, to get Slackware Linux via FTP, you must use
|
|
anonymous FTP.</p>
|
|
|
|
<p>Once connected, you will be at the <var class="LITERAL">ftp></var> prompt. There
|
|
are special commands for FTP, but they are similar to other standard commands. The
|
|
following shows some of the basic commands and what they do:</p>
|
|
|
|
<div class="TABLE"><a id="AEN4883" name="AEN4883"></a>
|
|
<p><b>Table 13-1. <tt class="COMMAND">ftp</tt> commands</b></p>
|
|
|
|
<table border="0" frame="void" class="CALSTABLE">
|
|
<col width="1*" />
|
|
<col width="3*" />
|
|
<thead>
|
|
<tr>
|
|
<th>Command</th>
|
|
<th>Purpose</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td><tt class="COMMAND">ls</tt></td>
|
|
<td>List files</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">cd <dirname></tt></td>
|
|
<td>Change directory</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">bin</tt></td>
|
|
<td>Set binary transfer mode</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">ascii</tt></td>
|
|
<td>Set ASCII transfer mode</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">get <filename></tt></td>
|
|
<td>Download a file</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">put <filename></tt></td>
|
|
<td>Upload a file</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">hash</tt></td>
|
|
<td>Toggle hash mark stats indicator</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">tick</tt></td>
|
|
<td>Toggle byte counter indicator</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">prom</tt></td>
|
|
<td>Toggle interactive mode for downloads</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">mget <mask></tt></td>
|
|
<td>Download a file or group of files; wildcards are allowed</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">mput <mask></tt></td>
|
|
<td>Upload a file or group of files; wildcards are allowed</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt class="COMMAND">quit</tt></td>
|
|
<td>Log off the FTP server</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<p>You can also use some of the following commands which are quite self-explanatory: <tt
|
|
class="COMMAND">chmod</tt>, <tt class="COMMAND">delete</tt>, <tt
|
|
class="COMMAND">rename</tt>, <tt class="COMMAND">rmdir</tt>. For a complete list of all
|
|
commands and their meaning, just type <kbd class="USERINPUT">help</kbd> or <kbd
|
|
class="USERINPUT">?</kbd> and you'll see a complete listing on screen.</p>
|
|
|
|
<p>FTP is a fairly simple program to use, but lacks the user interface that many of us
|
|
are used to nowadays. The man page discusses some of the command line options for <tt
|
|
class="COMMAND">ftp</tt>(1).</p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0" width="100%">
|
|
<tr>
|
|
<td>
|
|
<pre class="SCREEN">
|
|
ftp> <kbd class="USERINPUT">ls *.TXT</kbd>
|
|
200 PORT command successful.
|
|
150 Opening ASCII mode data connection for /bin/ls.
|
|
-rw-r--r-- 1 root 100 18606 Apr 6 2002 BOOTING.TXT
|
|
-rw-r--r-- 1 root 100 10518 Jun 13 2002 COPYRIGHT.TXT
|
|
-rw-r--r-- 1 root 100 602 Apr 6 2002 CRYPTO_NOTICE.TXT
|
|
-rw-r--r-- 1 root 100 32431 Sep 29 02:56 FAQ.TXT
|
|
-rw-r--r-- 1 root 100 499784 Mar 3 19:29 FILELIST.TXT
|
|
-rw-r--r-- 1 root 100 241099 Mar 3 19:12 PACKAGES.TXT
|
|
-rw-r--r-- 1 root 100 12339 Jun 19 2002 README81.TXT
|
|
-rw-r--r-- 1 root 100 14826 Jun 17 2002 SPEAKUP_DOCS.TXT
|
|
-rw-r--r-- 1 root 100 15434 Jun 17 2002 SPEAK_INSTALL.TXT
|
|
-rw-r--r-- 1 root 100 2876 Jun 17 2002 UPGRADE.TXT
|
|
226 Transfer complete.
|
|
ftp> <kbd class="USERINPUT">tick</kbd>
|
|
Tick counter printing on (10240 bytes/tick increment).
|
|
ftp> <kbd class="USERINPUT">get README81.TXT</kbd>
|
|
local: README81.TXT remote: README81.TXT
|
|
200 PORT command successful.
|
|
150 Opening BINARY mode data connection for README81.TXT (12339 bytes).
|
|
Bytes transferred: 12339
|
|
226 Transfer complete.
|
|
12339 bytes received in 0.208 secs (58 Kbytes/sec)
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="SECT2">
|
|
<h2 class="SECT2"><a id="BASIC-NETWORK-COMMANDS-FTP-NCFTP"
|
|
name="BASIC-NETWORK-COMMANDS-FTP-NCFTP">13.9.2 <tt class="COMMAND">ncftp</tt></a></h2>
|
|
|
|
<p><tt class="COMMAND">ncftp</tt>(1) (pronounced "Nik-F-T-P") is an alternative to the
|
|
traditional ftp client that comes with Slackware. It is still a text-based program, but
|
|
offers many advantages over <tt class="COMMAND">ftp</tt>, including:</p>
|
|
|
|
<ul>
|
|
<li>
|
|
<p>Tab completion</p>
|
|
</li>
|
|
|
|
<li>
|
|
<p>Bookmarks file</p>
|
|
</li>
|
|
|
|
<li>
|
|
<p>More liberal wildcard uses</p>
|
|
</li>
|
|
|
|
<li>
|
|
<p>Command history</p>
|
|
</li>
|
|
</ul>
|
|
|
|
<p>By default, <tt class="COMMAND">ncftp</tt> will try to log in anonymously to the
|
|
server you specify. You can force <tt class="COMMAND">ncftp</tt> to present a login
|
|
prompt with the “<var class="OPTION">-u</var>” option. Once logged in, you
|
|
can use the same commands as in <tt class="COMMAND">ftp</tt>, only you'll notice a nicer
|
|
interface, one that works more like <tt class="COMMAND">bash</tt>.</p>
|
|
|
|
<table border="0" bgcolor="#E0E0E0" width="100%">
|
|
<tr>
|
|
<td>
|
|
<pre class="SCREEN">
|
|
ncftp /pub/linux/slackware > <kbd class="USERINPUT">cd slackware-current/</kbd>
|
|
Please read the file README81.TXT
|
|
it was last modified on Wed Jun 19 16:24:21 2002 - 258 days ago
|
|
CWD command successful.
|
|
ncftp ...ware/slackware-current > <kbd class="USERINPUT">ls</kbd>
|
|
BOOTING.TXT FAQ.TXT bootdisks/
|
|
CHECKSUMS FILELIST.TXT extra/
|
|
CHECKSUMS.asc GPG-KEY isolinux/
|
|
CHECKSUMS.md5 PACKAGES.TXT kernels/
|
|
CHECKSUMS.md5.asc PRERELEASE_NOTES pasture/
|
|
COPYING README81.TXT rootdisks/
|
|
COPYRIGHT.TXT SPEEKUP_DOCS.TXT slackware/
|
|
CRYPTO_NOTICE.TXT SPEEK_INSTALL.TXT source/
|
|
CURRENT.WARNING Slackware-HOWTO
|
|
ChangeLog.txt UPGRADE.TXT
|
|
ncftp ...ware/slackware-current > <kbd class="USERINPUT">get README81.TXT</kbd>
|
|
README81.TXT: 12.29 kB 307.07 kB/s
|
|
</pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</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-web.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-talk.html"
|
|
accesskey="N">Next</a></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="33%" align="left" valign="top">Browsers</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">Talking to Other People</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|