Displays an abbreviated list of files and subdirectories in a remote directory.
Syntax
mls <remotefile>[ ] <localfile>
Parameters
| Parameter | Description |
|---|---|
<remotefile> |
Specifies the file for which you want to see a listing. When specifying remotefiles, use a hyphen to represent the current working directory on the remote computer. |
<localfile> |
Specifies a local file in which to store the listing. When specifying localfile, use a hyphen to display the listing on the screen. |
Examples
To display an abbreviated list of files and subdirectories for dir1 and dir2, type:
mls dir1 dir2 -
To save an abbreviated list of files and subdirectories for dir1 and dir2 in the local file dirlist.txt, type:
mls dir1 dir2 dirlist.txt
Related links
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
