LS (List Remote File Names)

FTP client subcommand

LS [ name] [(Disk]

name
The remote directory, file, or library that you want to list. If the remote system is an iSeries™ server, the server lists the file names and its members. The default is to list the entire current directory, library, or folder. To change the current directory, library, or folder, use the CD subcommand. The remote file specification is system dependent.
(Disk
Stores the results of the LS subcommand in the file * CURLIB/LSOUTPUT.LSOUTPUT, instead of showing the results on the display. Each time you specify the (Disk parameter with the same *CURLIB, the server changes the contents of the LSOUTPUT.LSOUTPUT member file.
Note: If the FTP server returns a negative reply code (550), then there will be no LSOUTPUT member. If the FTP server returns a positive reply code (150) without any file names, then an LSOUTPUT member with no records will result.

The LS subcommand lists the file names only. To get a list of complete directory entries with additional information about the files, see DIR (List Directory Entries, Libraries, or Files).

Related reference
DIR (List Directory Entries, Libraries, or Files)
CD (Change Working Directory or Library)
File Transfer Protocol client syntax conventions