Legal Information
PC Knowledge Base - FTP Command Reference

Good Knowledge Is Good2Use

LCD

Changes the current working directory on the local host to dir. LCD is a synonym for LOCAL-CD. See LOCAL-CD for more information.

FORMAT
LCD dir
LDIR

Displays the contents of your local working directory. LDIR is the same as LOCAL-DIRECTORY.

FORMAT
LDIR
EXAMPLE
FTP>ldir *.com
USERS:[FLOWERS.DOC.V32]
DOC.COM;2 1 1-APR-1996 01:36 FLOWERS_FILES (RWED,RWED,,)
LOGIN.COM;3 5 1-APR-1996 19:07 FLOWERS_FILES (RWED,RWED,,)
LOGIN.COM;2 5 1-APR-1996 19:04 FLOWERS_FILES (RWED,RWED,,)
LOGIN.COM;1 5 1-APR-1996 18:49 FLOWERS_FILES (RWED,RWED,,)
Total of 16 blocks in 4 files. FTP>
LIST

Displays automatic login information for host. See the SET command for information about setting automatic login information for a host.

FORMAT
LIST [host]
PARAMETERS
host - Specifies the host whose automatic login information you are trying to display. If you do not specify host, LIST displays automatic login information for all hosts for which login information has been set.
Restrictions
Do not use this command when connected to a remote host.
EXAMPLE

This example shows how to set and list information for the DS.INTERNIC.NET host.

FTP>set ds.internic.net /user=anonymous /pass=guest
FTP>list
DS.INTERNIC.NET
User: anonymous
Password: guest
FTP>

LOCAL-CD

Changes the current working directory on the local host to dir. LOCAL-CD is the same as LCD.

FORMAT
LOCAL-CD dir
PARAMETERS
dir - Specifies the name of the directory to which to change the current working directory.
EXAMPLE
FTP>lcd [-]
Connected to USERS:[FLOWERS.DOC].
FTP>

LOCAL-DIRECTORY

Displays the contents of your local working directory. LOCAL-DIRECTORY is a synonym for LDIR.

FORMAT
LOCAL-DIRECTORY
LOCAL-PWD

Displays the current working directory on the local host. LOCAL-PWD is a synonym for LPWD.

FORMAT
LOCAL-PWD
LOGIN

Identifies you to a remote FTP server. LOGIN is the same as USER.

FORMAT
LOGIN user [password]
PARAMETERS
user - Specifies your user name on the remote server.
password - Specifies your password on the remote server. If you do not specify password and the remote site requires one, you are prompted for it. In either case, the password is not echoed.
Restrictions EXAMPLE

This example shows how to connect to a remote host and log in.

$ ftp irisd.com
Connection opened (Assuming 8-bit connections)
IRISD.COM>login HOLMES password
IRISD.COM>

LPWD

Displays the current working directory on the local host. LPWD is the same as LOCAL-PWD.

FORMAT
LPWD
EXAMPLE
FTP>lpwd
Connected to USERS:[FLOWERS.DOC].
FTP>

LS

Displays a names-only listing of files on the remote host. You can use wildcard specifications.

FORMAT
LS [file_spec] [output_file]
PARAMETERS
file_spec - Specifies the file specification to use in the directory lookup on the remote host. If you do not specify file_spec, the current working directory on the remote host is used. Any wildcards used are interpreted in the context of the remote host operating system.
output_file - Specifies the name of the file to which to write the directory listing. If output_file is not specified, the list is directed to SYS$OUTPUT:.
Restrictions EXAMPLE

This example shows how to retrieve the directory listing of the files matching the wildcard character *.

FLOWERS.COM>ls *.
$mailinterface.
mymail.
todo.
FLOWERS.COM>

MDELETE

Deletes multiple files on the remote host. MDELETE is a synonym for MULTIPLE DELETE.

FORMAT
MDELETE files
MGET

Copies multiple files from the remote host to the local host. MGET is a synonym for MULTIPLE GET.

FORMAT
MGET files
MKDIR

Creates the directory dir on the remote host. MKDIR is a synonym for CREATE-DIRECTORY.

FORMAT
MKDIR dir
MODE

Sets the transfer mode to COMPRESSED or STREAM (the default).

FORMAT
MODE mode
PARAMETERS
mode - Specifies one of two values: COMPRESSED or STREAM (the default).
Restrictions EXAMPLE

This example shows how to enable COMPRESSED mode.

FLOWERS.com>mode c
Type: Ascii (Non-Print), Structure: VMS, Mode: Compression
FLOWERS>COM>

MPUT

Copies multiple files from the local host to the remote host. MPUT is a synonym for MULTIPLE SEND.

FORMAT
MPUT files
MULTIPLE DELETE

Deletes multiple files on the remote host. If you have turned on CONFIRM, (to confirm multiple transactions interactively), you are asked to confirm the deletion of each file. MULTIPLE DELETE is the same as MDELETE.

FORMAT
MULTIPLE DELETE files
PARAMETERS
files - Specifies which files to delete. Wildcard characters in files are expanded on the remote host.
Restrictions EXAMPLE

This example shows how to delete all files matching the remote wildcard * character.

FLOWERS.COM>multiple delete *.com;*
< List started

MULTIPLE GET

Copies multiple files from the remote host to the local host. If you have turned on CONFIRM (to confirm multiple transactions interactively), you are asked to confirm the transfer of each file. MULTIPLE GET is the same as MGET and MULTIPLE RECEIVE.

FORMAT
MULTIPLE GET files
PARAMETERS
files - Specifies the names of the files to be copied. Wildcard characters are expanded on the remote host.
Restrictions
  • Use this command only when connected to a remote host.
  • Most remote hosts require that you log in before using the MULTIPLE GET command.
EXAMPLE

This example shows how to transfer all files matching the * wildcard character.

FLOWERS.COM>multiple get *.com

MULTIPLE PUT

Copies multiple files from the local host to the remote host. MULTIPLE PUT is a synonym for MULTIPLE SEND.

FORMAT
MULTIPLE PUT files
MULTIPLE RECEIVE

Copies multiple files from the remote host to the local host. MULTIPLE RECEIVE is a synonym for MULTIPLE GET.

FORMAT
MULTIPLE RECEIVE files
MULTIPLE SEND

Copies multiple files from the local host to the remote host. If you have turned on CONFIRM (to confirm multiple transactions interactively), you are asked to confirm the transfer of each file. MULTIPLE SEND is the same as MULTIPLE PUT and MPUT.

FORMAT
MULTIPLE SEND files
PARAMETERS
files - Specifies which files to copy. Wildcard characters in files are expanded on the local host.
Restrictions
  • Use this command only when connected to a remote host.
  • Most remote hosts require that you log in before using the MULTIPLE SEND command.
EXAMPLE

This example shows how to transfer the files which match the "*.COM" wildcard.

YOYDYNE.COM>multiple send *.com
YOYDYNE.COM>



Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE