LS

Syntax: ls [<server filespec>]

FTP Command Index       SFTP Command Index

The LS command displays a simple listing of server files matching the given filespec. (Compare this to the DIR command, which displays a more detailed listing.)

<server filespec>

Specifies a folder, file, or group of files on the server. If this option is not used, the contents of the current server folder are displayed.

Example

In this example, the names of all files in the current folder on a UNIX FTP server are listed:

LS *.*