Working with files on the FTP server
After you log in to the server, you can upload a file to or download a file from the authorized directory by following these steps:
Use the dir or ls command to display the directory and location of the file on the FTP server.
Delete unused files to get more free storage space.
Set the file transfer mode to ASCII for text files or binary for image files.
Use the lcd command to change the local working directory of the FTP client. You can upload the file or save the downloaded file in this directory.
Upload or download the file.
To work with files on an FTP server, execute the following commands in FTP client view:
Task | Command | Remarks |
---|---|---|
Display directory or file information on the FTP server. |
| N/A |
Delete the specified file on the FTP server permanently. | delete remotefile | N/A |
Set the file transfer mode. |
| The default file transfer mode is binary. |
Set the FTP operation mode to passive. | passive | The default mode is passive. |
Display or change the local working directory of the FTP client. | lcd [ directory | / ] | N/A |
Upload a file to the FTP server. | put localfile [ remotefile ] | N/A |
Download a file from the FTP server. | get remotefile [ localfile ] | N/A |
Add the content of a file on the FTP client to a file on the FTP server. | append localfile [ remotefile ] | N/A |
Specify the retransmit marker. | restart marker | Use this command together with the put, get, or append command. |
Update the local file. | newer remotefile | N/A |
Get the missing part of a file. | reget remotefile [ localfile ] | N/A |
Rename the file. | rename [ oldfilename [ newfilename ] ] | N/A |