HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 77
ls, to save information about a specific file or subdirectory to a local file.
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 77 highlights
Examples # Display the local working directory. [ftp] lcd FTP: Local directory now flash:/clienttemp. The output shows that the working directory of the FTP client before execution of the ftp command is flash:/clienttemp. ls Syntax View ls [ remotefile [ localfile ] ] FTP client view Default level 3: Manage level Parameters remotefile: Filename or directory on the remote FTP server. localfile: Name of a local file used to save the displayed information. Description Use ls to display information about all files and subdirectories under the remote FTP server's current working directory. The file names and subdirectory names are displayed. Use ls remotefile to display information about a specific file or subdirectory. Use ls remotefile localfile to save information about a specific file or subdirectory to a local file. The ls command displays only the names of files and directories on the FTP server. The dir command can display other related information of the files and directories, such as the size and the date they were created. Examples # Display information about all files and subdirectories under the FTP server's current working directory. [ftp] ls 227 Entering Passive Mode (192,168,1,50,17,165). 125 ASCII mode data connection already open, transfer starting for /*. ar-router.cfg logfile mainar.bin arbasic.bin ftp test bb.cfg testcfg.cfg 226 Transfer complete. FTP: 87 byte(s) received in 0.132 second(s) 659.00 byte(s)/sec. # Display information about all files and subdirectories under the subdirectory logfile of the FTP server's current working directory. 70