After logging in to an FTP server, you can use FTP commands to operate files, including configuring the file transfer mode, viewing online helps about FTP commands, uploading files, and managing directories and files.
File Operation |
Description |
|
---|---|---|
Managing files |
Configuring the file type |
The FTP file type is determined by the client. By default, the ASCII type is used. |
Configuring the data connection mode |
|
|
Uploading files |
NOTE:
You can also run either of the following commands in the user view to upload the local file to the FTP server:
|
|
Downloading files |
NOTE:
You can also run either of the following commands in the user view to download the local file to the FTP server:
|
|
Enabling the file transfer notification function |
|
|
Enabling the FTP verbose function |
Run the verbose command. After the verbose function is enabled, all FTP response information is displayed. After file transfer is complete, statistics about the transmission rate are displayed. |
|
Enabling the function of appending the local file contents to the file on the FTP server |
Run the append local-filename [ remote-filename ] command. If the file specified by remote-filename does not exist on the FTP server, the file is automatically created on the FTP server, and the local file contents are automatically appended to the end of the created file. |
|
Deleting files from a server |
Run the delete remote-filename. |
|
Managing directories |
Changing the working path of a remote FTP server |
Run the cd pathname command. |
Changing the working path of an FTP server to the parent directory |
Run the cdup command. |
|
Displaying the working path of an FTP server |
Run the pwd command. |
|
Displaying files in a directory and the list of sub-directories |
Run the dir [ remote-directory [ local-filename ] ] command. If no path name is specified for a specified remote file, the system searches an authorized directory for a specified file. |
|
Displaying a specified remote directory or file on an FTP server |
Run the ls [ remote-directory [ local-filename ] ] command. |
|
Displaying or changing the working path of an FTP client |
Run the lcd [ directory ] command. The lcd [ directory ] command displays the local working path of the FTP client, while the pwd command displays the working path of the remote FTP server. |
|
Creating a directory on an FTP server |
Run the mkdir remote-directory command. The directory can be a combination of letters and digits and must not contain special characters, such as less than (<), greater than (>), question marks (?), backslashes (\), and colons (:). |
|
Deleting a directory from an FTP server |
Run the rmdir remote-directory command. |
|
Displaying online help for an FTP command |
Run the remotehelp [ command ] command. |
|
Enabling the resumable data transfer for the FTP client |
Run the ftp client resumable-transfer enable command in the system view. |