<< back to sysax.com Product page

4.3.1. List contents of remote directory

The dir Displays a list of a remote directory's files and subdirectories. See also mdir, which can list multiple directories. It followed by the parameters are 'remote-directory and local-file'. The remote-directory specifies the directory for which you want to see a listing. If no directory is specified, the current working directory on the remote computer is used and the local-file specifies a local file to store the listing. If not specified, output is displayed on the screen.

The Syntax is

Exhibit 4.9. Syntax of "dir" command

 
 dir [remote-directory] [local-file]


The example is

Exhibit 4.10. Example of "dir" command


 sysaxftp> dir 

 TYPE A
 200 Command okay
 PASV
 227 Entering Passive Mode (192,168,0,30,39,18)
 LIST
 150 FIle status okay; about to open data connection
 226 Closing data connection
 2007sep12.txt
 2007sep17.txt
 2007sep18.txt
 2007sep19.txt
 2007sep20.txt
 2007sep21.txt

 sysaxftp>