Managing the directories on the ftp server, Working with the files on the ftp server – H3C Technologies H3C S12500 Series Switches User Manual
Page 80

68
Managing the directories on the FTP server
After the device establishes a connection to the FTP server, you can create or delete folders under the
authorized directory on the FTP server.
To manage the directories on an FTP server:
Task Command
Display detailed information about a directory or file on the
remote FTP server.
dir [ remotefile [ localfile ] ]
Query a directory or file on the remote FTP server.
ls [ remotefile [ localfile ] ]
Change the working directory of the remote FTP server.
cd { directory | .. | / }
Return to the upper level directory of the remote FTP server.
cdup
Display the working directory that is being accessed.
pwd
Create a directory on the remote FTP server.
mkdir directory
Remove the specified working directory on the remote 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. 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 or save the downloaded file under this directory.
5.
Upload or download a file.
To work with the files on an FTP server:
Task Command
Remarks
Display detailed information
about a directory or file on the
remote 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
remote 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.
Delete the specified file on the
remote FTP server permanently.
delete remotefile
N/A
Set the file transfer mode to
ASCII.
ascii
By default, ASCII mode is used.
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches