Question:
4 questions - FTP Commands (file transfer protocol commands)?
dd
2008-09-12 00:08:50 UTC
1) what should you use as the login username when you are initiating an anonymous ftp session? Is it anonymous , or anonymous FTP ?

2) type a command to download all the files from the current directory on the remote machine with extension ".txt" to the current directory on the local machine

3) Type a command to list the files located in the current directory on the remote computer. Is it "dir" ?

4) To exit the FTP program on the UH engineering ftp server, we can use which of the following commands?


a. quit
b. bye
c. close
d. end
e. out
f. exit
Three answers:
Randy
2008-09-12 00:15:20 UTC
1) login anonymous, pass anylogin@domain.com



2) get *.txt



3) ls, list



4) quit: 221 good bye



start - run - ftp

o ftp.server.com
anonymous
2008-09-12 00:18:08 UTC
1 Usually Anonymous users can only download, not upload.

#2 cant think of anything off the top of my head, why are you not using an FTP program? Command line access is irritating.

#3 Are you connecting to LINUX or Windows?

ls for linux dir for Windows



#4 I would try A or F but seriously.. refer to answer #2.
anonymous
2008-09-12 00:17:23 UTC
most of the time, anonymous.



the download command in ruby is ftp.get(filename) so maybe this would work?



if it's a windows ftp server "dir" or if a linux use "ls" but better than that use "nlst" if you can.



use close, this closes the ftp session, meaning that nothing else can happen on the ftp server untill you reopen at session.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...