1755953 Members
4023 Online
108839 Solutions
New Discussion юеВ

list of commands for ftp

 
SOLVED
Go to solution
Shivkumar
Super Advisor

list of commands for ftp

Hi,

I want to know the list of ftp commands for local and remote hosts. I mean once we have ftp'ed to remote host then wants to know various commands at source and destination host available from "ftp" prompt.

E.g. $ftp> lcd /home/sksonkar/rose/
changes directory to /home/sksonkar/rose

Wants to know more such commands ?

Thanks,
Shiv
9 REPLIES 9
Arunvijai_4
Honored Contributor
Solution

Re: list of commands for ftp

Hi Shiv,

You can just type help at ftp> prompt.

ftp> help
Commands may be abbreviated. Commands are:

! cr mdir proxy send
$ delete mget sendport site
account debug mkdir put size
append dir mls pwd status
ascii disconnect mode quit struct
bell form modtime quote system
binary get mput recv sunique
bye glob newer reget tenex
case hash nmap rstatus trace
ccc help nlist rhelp type
cd idle ntrans rename user
cdup image open reset umask
chmod lcd passive restart verbose
clear ls private rmdir ?
close macdef prompt runique
cprotect mdelete protect safe


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
AwadheshPandey
Honored Contributor

Re: list of commands for ftp

Pls type
ftp> ?
Commands may be abbreviated. Commands are:
! cr macdef proxy send
$ delete mdelete sendport status
account debug mdir put struct
append dir mget pwd sunique
ascii disconnect mkdir quit tenex
bell form mls quote trace
binary get mode recv type
bye glob mput remotehelp user
case hash nmap rename verbose
cd help ntrans reset ?
cdup lcd open rmdir
close ls prompt runique


Here is Some Links for You, This will give all informations which you need.
http://www.cs.colostate.edu/helpdocs/ftp.html
http://www.columbia.edu/acis/eds/data_tools/ftp-man/ftp_com.html

Also find attched a good document for you.

Cheers,

Awadhesh
It's kind of fun to do the impossible
Peter Godron
Honored Contributor

Re: list of commands for ftp

Shiv,
or use good old man:

man ftp

It also gives the full list of commands, with additional information
Ninad_1
Honored Contributor

Re: list of commands for ftp

Shiv,

You can use the help available at the ftp prompt. Do ftp and then at the ftp prompt
ftp>help
! debug mget put size
$ dir mkdir pwd status
account disconnect mls quit struct
append form mode quote system
ascii get modtime recv sunique
bell glob mput reget tenex
binary hash newer rstatus trace
bye help nmap rhelp type
case idle nlist rename user
cd image ntrans reset umask
cdup lcd open restart verbose
chmod ls prompt rmdir ?
close macdef proxy runique
cr mdelete sendport send
delete mdir passive site

Then do
ftp>help commandname
e.g.
ftp>help reset
reset clear queued command replies

Regards,
Ninad
Arturo Galbiati
Esteemed Contributor

Re: list of commands for ftp

Hi Shiv,
to see comamnd available for local:
on your server
ftp
help

to see command available for remote connect to remove server and after type help

HTH,
Art
Indira Aramandla
Honored Contributor

Re: list of commands for ftp

Hi Shivkumar,

at ftp prompt type help or ?
This will display all the allowed commnads from the ftp prompt.

Attached txt file has those commands.


IndiraA
Never give up, Keep Trying
rariasn
Honored Contributor

Re: list of commands for ftp

Hi Shivkumar,

$ man ftp

describe option for ftp, sample:

ascii, bell, binary, bye, case, cd cdup, chmod, close, cr, delete, dir, disconnect, form, get, glob, hash, help, idle, etc.

rgs,

ran
Bill Hassell
Honored Contributor

Re: list of commands for ftp

Many ftp commands are common to all flavors of fpt *BUT* some commands are defined by the remote site (the ftpd daemon for Unix systems). And some server (ftpd) commands may be restricted such as "site" and "quote". Use the command: rhelp


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: list of commands for ftp

Shalom Shiv,

Are you planning on implementing chroot on your ftp daemon?

If so, you would need to have local commands that ftp provides such a ls in the home direcotry.

The actual command provided vary from ftp daemon to ftp daemon. The help command does show whats relavent to wu-ftpd, which is the default that ships with HP-UX.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com