Ftp: ls

Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Ftp: ls

Displays an abbreviated list of files and subdirectories in a remote directory.


ls [RemoteDirectory] [LocalFile]

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.

Specifies a local file in which to store the listing. If a local file is not specified, results are displayed on the screen.

? ls
Displays help for the ls command.

Formatting legend


Format Meaning


Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also

Community Additions