The mls command returns information on files on the remote host. Details on remote files can also be obtained with the dir, mdir and ls commands.
mls |
[<remote-file>] [<remote-file>] [<remote-file>] ... - | <local-file> |
<remote-file>
Name of a file on the remote host. Multiple file names may be specified in a single call.
<local-file>
Name of the local file to which the output from the command is to be written.
-
The information is to be displayed on the screen.
If no operands are specified, they are requested in a dialog.
Example
The remote host is a Unix host.
The names of the local and remote working directories are queried.
lpwd Local directory is :5:$TCPTEST.MAN. pwd 257 "/usr/tcptest/man/sam/nach.bs2000" is current directory.
The files designated by berta, berta.* and anton.* are listed in the local file lists.prot. The FTP server function PORT is called implicitly. The prompting function is disabled.
mls berta berta.* anton.* lists.prot 200 PORT command okay. 150 ASCII data connection for berta (89.16.100.0,1184). 226 Transfer complete. 6 bytes received in 0.05 seconds (9.93E-02 Kbytes/s) 200 PORT command okay. 150 ASCII data connection for berta (89.16.100.0,1185). 226 Transfer complete. 16 bytes received in 0.21 seconds (7.37E-02 Kbytes/s) 200 PORT command okay. 150 ASCII data connection for anton.* (89.16.100.0,1186). 226 Transfer complete. 24 bytes received in 0.14 seconds (1.58E-01 Kbytes/s)