Managing directories on the ftp server, Working with the files on the ftp server – H3C Technologies H3C SecBlade LB Cards User Manual
Page 97
88
Task Command
Log in to the remote FTP server from FTP client view.
1.
ftp ipv6
2.
open ipv6 server-address [ service-port ] [ -i
interface-type interface-number ]
Managing directories on the FTP server
After the device establishes a connection to an FTP server, you can create or delete folders in the
authorized directory on the FTP server.
To manage the directories on the FTP server:
Task Command
Display detailed information about a directory or file on the FTP server.
dir [ remotefile [ localfile ] ]
Query a directory or file on the FTP server.
ls [ remotefile [ localfile ] ]
Change the working directory on the FTP server.
cd { directory | .. | / }
Return to the upper level directory on the FTP server.
cdup
Display the working directory being accessed.
pwd
Create a directory on the remote FTP server.
mkdir directory
Remove the specified working directory on the FTP server.
rmdir directory
Working with the 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:
1.
Use the dir or ls command to display the directory and the location of the file on the FTP server.
2.
Delete unused files to get more free storage space.
3.
Set the file transfer mode. FTP transmits files in two modes: ASCII and binary. Use ASCII mode to
transfer text files. Use binary mode to transfer image files.
4.
Use the lcd command to display the local working directory of the FTP client. You can upload the
file or save the downloaded file in this directory.
5.
Upload or download the file.
To work with files on the FTP server:
Task Command
Remarks
Display detailed information
about a directory or file on the
FTP server.
dir [ remotefile [ localfile ] ]
The ls command displays the name of a
directory or file only, while the dir
command displays detailed information
such as the file size and creation time.
Query a directory or file on the
FTP server.
ls [ remotefile [ localfile ] ]
The ls command displays the name of a
directory or file only, while the dir
command displays detailed information
such as the file size and creation time.