0% found this document useful (0 votes)
6 views2 pages

Login: Common FTP Commands

Uploaded by

rendralestiyanto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Login: Common FTP Commands

Uploaded by

rendralestiyanto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

FTP is built on a client-server architecture and utilizes separate control and data connections between

the client and server.FTP users may authenticate themselves using a clear-text sign-in protocol but can
connect anonymously if the server is configured to allow it. FTP is most commonly used to download
a file from a server using the Internet or to upload a file to a server (e.g., uploading a Web page file to
a server).

Login
FTP login utilizes a normal username/password scheme for granting access. The username is sent to
the server using the USER command, and the password is sent using the PASS command. If the
information provided by the client is accepted by the server, the server will send a greeting to the
client and the session will be open. If the server supports it, users may log in without providing login
credentials. The server will also limit access for that session based on what the user is authorized.

Anonymous FTP
A host that provides an FTP service may additionally provide anonymous FTP access. Users typically
log into the service with an 'anonymous' account when prompted for user name. Although users are
commonly asked to send their email address in lieu of a password, no verification is actually
performed on the supplied data.

Common FTP Commands

? to requesthelp or information about the FTP commands


to set the mode of file transfer to ASCII
ascii
(this is the default and transmits seven bits per character)
to set the mode of file transfer to binary
binary (the binary mode transmits all eight bits per byte and thus provides less chance of a
transmission error and must be used to transmit files other than ASCII files)
bye to exit the FTP environment (same asquit)
cd to change directory on the remote machine
close to terminate a connection with another computer
close closes the current FTP connection with brubeck,
brubeck but still leaves you within the FTP environment.
delete to delete (remove) a file in the current remote directory (same asrm in UNIX)
get to copy one file from the remote machine to the local machine
get ABC copies file ABC in the current remote directory to (or on top of) a file named
DEF DEF in your current local directory.
copies file ABC in the current remote directory to (or on top of) a file with the
get ABC
same name, ABC, in your current local directory.
help to request a list of all available FTP commands
lcd to change directory on your local machine (same as UNIXcd)
ls to list the names of the files in the current remote directory
mkdir to make a new directory within the current remote directory
to copy multiple files from the remote machine to the local machine;
mget
you are prompted for ay/n answer before transferring each file
copies all the files in the current remote directory to your current local directory,
mget *
using the same filenames. Notice the use of the wild card character, *.
to copy multiple files from the local machine to the remote machine;
mput
you are prompted for ay/n answer before transferring each file
open to open a connection with another computer
opens a new FTP connection with brubeck;
open
you must enter a username and password for a brubeck account
brubeck
(unless it is to be an anonymous connection).
put to copy one file from the local machine to the remote machine
pwd to find out the pathname of the current directory on the remote machine
quit to exit the FTP environment (same asbye)
rmdir to to remove (delete) a directory in the current remote directory

You might also like