After logging in to a device that functions as an FTP server by using FTP, you can upload files to or download files from the device, and manage device directories.
Table 1 describes FTP file attributes.
File Attribute |
Description |
---|---|
FTP file type |
|
FTP data connection mode |
The following data connection mode can be set for the FTP server:
During connection establishment, the FTP client determines the data connection mode. |
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 |
|
|
Downloading files |
|
|
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 |
Run the delete remote-filename command. |
|
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, whereas 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. |
|
Changing an FTP user |
Run the user username [ password ] command. |
The configuration is committed.