Recursive listing of subdirectories via FTP
Posted: 2/15/2005 8:42:55 AM
By: Comfortably Anonymous
Times Read: 2,362
0 Dislikes: 0
Topic: Linux
Came across a new, very useful, command line FTP command to list all the subdirectories and files under the current directory. This is very much like the DOS command 'dir /s'

You can use either mls or mdir (Multiple ls or multiple dir) depending on what data you want to see.

mdir gives full file information with filesize, owner, and chmod info.

mls gives only the path/filename info, which is great if you need a cleaner display without all the extraneous data.

To get everything displayed to the screen:

mdir * -
mls * -

To get everything written to a text file:

mdir * localfile.txt
mls * localfile.txt

Enjoy...
Rating: (You must be logged in to vote)