1-5Operating the Files on an FTP ServerAfter the device serving as the FTP client has established a connection with an FTP server (For how toestablish an FTP connection, refer to Establishing an FTP Connection.), you can upload a file to ordownload a file from the FTP server under the authorized directory of the FTP server by following thesesteps: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 modetransfers 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 thefile 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… RemarksDisplay detailed informationabout a directory or file onthe remote FTP serverdir [ remotefile [ localfile ] ]OptionalThe ls command displays the name ofa directory or file only, while the dircommand displays detailed informationsuch as the file size and creation time.Query a directory or file onthe remote FTP server ls [ remotefile [ localfile ] ]OptionalThe ls command displays the name ofa directory or file only, while the dircommand displays detailed informationsuch as the file size and creation time.Delete the specified file onthe remote FTP serverpermanentlydelete remotefile OptionalSet the file transfer mode toASCII ascii OptionalASCII by default.Set the file transfer mode tobinary binary OptionalASCII by default.Set the data transmissionmode to passive passive OptionalPassive by default.Display the local workingdirectory of the FTP client lcd OptionalUpload a file to the FTPserver put localfile [ remotefile ] OptionalDownload a file from the FTPserver get remotefile [ localfile ] OptionalUsing Another Username to Log In to an FTP ServerAfter the device serving as the FTP client has established a connection with the FTP server (For how toestablish an FTP connection, refer to Establishing an FTP Connection.), you can use another usernameto log in to the FTP server.