Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Medical Corps

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 57 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       xtp [ -options ... ] <uniform resource locator>


       Xtp is a utility for retrieving, listing, or printing
       files from a remote network site, or sending files to a
       remote network site.  xtp performs most of the same func­
       tions as the ftp(1) program, but does not require any
       interactive commands.  You simply specify the file trans­
       fer task on the command line and xtp performs the task


       To retrieve the file bird.jpg in directory images from
       host wizard.dupont.com, use:

            xtp ftp://wizard.dupont.com/images/bird.jpg

       To retrieve all the files from directory images as user
       magick from host wizard.dupont.com, use:

            xtp -retrieve ftp://magick@wizard.dupont.com/images/

       You will be prompted for a password.

       To retrieve all the files from directory images as user
       magick and password magick from host wizard.dupont.com,

            xtp -retrieve ftp://magick:magick@wiz­


       -account password
              Supply a supplemental password required by a remote
              system for access to resources.

              retrieve files as binary.  This is the default.
              Use +binary to retrieve files as text.

              list the names of files and their attributes that
              match the filename component of the uniform
              resource locator.  The filename component is pro­
              cessed as a regular expression.

       -exclude expression
              exclude files that match the regular expression.

              This option applies to the -directory, -print, or
              -retrieve options.
              store the file locally with a different name by
              using the -file option.

       -port number
              If no port number is specified, xtp attempts to
              contact a FTP server at the default port.  Other­
              wise, the specified port number is used.

       -proxy hostname
              access the remote host via a proxy ftpd client run­
              ning on this host.

              The default value of this option can be set with
              the environment variable xtp_proxy.  See ENVIRON­
              MENT for more details.  Use +proxy to prevent proxy

       -print print files that match the filename component of
              the uniform resource locator.  The filename compo­
              nent is processed as a regular expression.

       -prune process files in the remote directory specified by
              the directory component of the uniform resource
              locator.  Do not recursively search for files.

       -put   put files that match the filename component of the
              uniform resource locator.  The filename component
              is expanded by passing it to csh(1).

              This option is equivalent to using the ftp put com­
              mand.  However, if the filename contains globbing
              characters this option is equivalent to the ftp
              mput command.  Without globbing characters, you can
              store the file remotely with a different name by
              using the -file option.

              retrieve files that match the filename component of
              the uniform resource locator.  The filename compo­
              nent is processed as a regular expression.

              Retrieved files are stored on your local host
              directory as the full name of the retrieved file.
              For example, if the retrieved file is named docu­
              ments/xtp.man on the remote FTP server, it will
              appear in your remote directory as docu­

       -timeout seconds
              specifies the maximum seconds to complete your
              remote FTP server request.  If this time expires,
              the program terminates.  The program also termi­

       If only the program name is specified on the command line,
       the program command syntax and options are listed.

       If neither -directory, -print, -put, or -retrieve are
       specified on the command line, the file or files specified
       by the uniform resource locator is retrieved from the
       remote network host (as if -get was specified).

       <uniform resource locator> has the format:


       where protocol is ftp and host is [user[:password]]@host­
       name.  User defaults to anonymous and password defaults to
       host.domain.  Note that directory/[filename] is inter­
       preted relative to the home directory for user, thus an
       absolute pathname must be specified with the leading /:


       As an extension, the filename part of the locator is
       expanded by the shell for options -get or -put, otherwise
       it is processed as a regular expression.  For convenience,
       the protocol component of the uniform resource locator
       (ftp://) may be omitted.

       Xtp retrieves files from the remote directory for -get and
       puts files in the remote directory for -put.  Otherwise,
       xtp looks for a file of the form ls-lls-l([Rt])+([Rt])*
       and assumes it contains a recursive directory listing.  If
       none is found, xtp recursively descends the directory
       hierarchy from the remote directory.  Some remote hosts
       may have thousands of files causing a significant delay
       satisfying your request.  This can be wasteful if the
       files you are interested in reside in a known directory.
       You can reduce the searching required by specifying
       <remote directory> on the command line.  This limits the
       filename search to the specified directory and any of its
       subdirectories.  Alternatively, -prune restricts the
       search to the remote directory only.


       A regular expression is zero or more branches, separated
       by |.  It matches anything that matches one of the

       A branch is zero or more pieces, concatenated.  It matches
       a match for the first, followed by a match for the second,

       A piece is an atom possibly followed by *, +, or ?.  An
       atom followed by * matches a sequence of 0 or more matches
       normally matches any single character from the sequence.
       If the sequence begins with ^, it matches any single char­
       acter not from the rest of the sequence.  If two charac­
       ters in the sequence are separated by -, this is shorthand
       for the full list of ASCII characters between them (e.g.
       [0-9] matches any decimal digit). To include a literal ]
       in the sequence, make it the first character (following a
       possible ^).  To include a literal -, make it the first or
       last character.


              Specifies that the remote site should be contacted
              by proxy.  See -proxy.




       ftp(1C), Mosaic(1)


       Copyright (C) 2000 ImageMagick Studio, a non-profit orga­
       nization dedicated to making software imaging solutions
       freely available.

       Permission is hereby granted, free of charge, to any per­
       son obtaining a copy of this software and associated docu­
       mentation files ("ImageMagick"), to deal in ImageMagick
       without restriction, including without limitation the
       rights to use, copy, modify, merge, publish, distribute,
       sublicense, and/or sell copies of ImageMagick, and to per­
       mit persons to whom the ImageMagick is furnished to do so,
       subject to the following conditions:

       The above copyright notice and this permission notice
       shall be included in all copies or substantial portions of

       The software is provided "as is", without warranty of any
       kind, express or implied, including but not limited to the
       warranties of merchantability, fitness for a particular
       purpose and noninfringement.  In no event shall ImageMag­
       ick Studio be liable for any claim, damages or other lia­
       bility, whether in an action of contract, tort or other­
       wise, arising from, out of or in connection with ImageMag­
       ick or the use or other dealings in ImageMagick.

       Except as contained in this notice, the name of the
       ImageMagick Studio shall not be used in advertising or
       otherwise to promote the sale, use or other dealings in
       ImageMagick without prior written authorization from the

                         10 December 1994                  XTP(1)

Looking for a "printer friendly" version?



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds