Follow these steps to operate the directories on an FTP server:
To do… | Use the command… | Remarks | |
Display detailed information about a directory or | dir [ remotefile [ localfile ] ] | Optional | |
file on the remote FTP server | |||
|
| ||
|
|
| |
Query a directory or file on the remote FTP server | ls [ remotefile [ localfile ] ] | Optional | |
|
|
| |
Change the working directory of the remote FTP | cd { directory .. / } | Optional | |
server | |||
|
| ||
|
|
| |
Exit the current working directory and return to an | cdup | Optional | |
upper level directory of the remote FTP server | |||
|
| ||
|
|
| |
Display the working directory that is being | pwd | Optional | |
accessed | |||
|
| ||
|
|
| |
Create a directory on the remote FTP server | mkdir directory | Optional | |
|
|
| |
Remove the specified working directory on the | rmdir directory | Optional | |
remote FTP server | |||
|
| ||
|
|
|
After the switch serving as the FTP client has established a connection with an FTP server, you can upload a file to or download a file from the FTP server under the authorized directory of the FTP server by following these steps. For information about establishing an FTP connection, see “Establishing an FTP connection.”
1.Use the dir or ls command to display the directory and the location of the file on the FTP server.
2.Delete useless files for effective use of the storage space.
3.Set the file transfer mode. FTP transmits files in two modes: ASCII and binary. ASCII mode transfers files as text. Binary mode transfers files as raw data.
4.Use the lcd command to display the local working directory of the FTP client. You can upload the file under this directory, or save the downloaded file under this directory.
5.Upload or download the file.
Follow these steps to operate the files on an FTP server:
To do… | Use the command… | Remarks | |
|
| Optional | |
Display detailed information |
| The ls command displays the name of a | |
about a directory or file on the | dir [ remotefile [ localfile ] ] | directory or file only, while the dir | |
remote FTP server |
| command displays detailed information | |
|
| such as the file size and creation time. | |
|
|
| |
|
| Optional | |
Query a directory or file on the | ls [ remotefile [ localfile ] ] | The ls command displays the name of a | |
directory or file only, while the dir | |||
remote FTP server | |||
| command displays detailed information | ||
|
| ||
|
| such as the file size and creation time. | |
|
|
| |
Delete the specified file on the | delete remotefile | Optional | |
remote FTP server permanently | |||
|
| ||
|
|
| |
Set the file transfer mode to | ascii | Optional | |
ASCII | ASCII by default. | ||
| |||
|
|
| |
| 88 |
|