-<tt>ls </tt>: Listing



next up previous contents
Next: -quit Up: FTP Common Commands Previous: -cd : Change

-ls : Listing

ls [-lsa]
is used to produce a listing of the files in the remote machine. The meaning of the flags is the same as for UNIX's ls.

If the form

ls argument filename
where argument may be either a list of options (such as -l) or a filename(s) on the remote site, the output from the command would be put in filename on the local system.

Another form,

ls remote_file ``| command"
would pipe the output of the remote ls directive into the local command.

A typical command may be more or grep, such as

ls * ``| more"



Super-User
Fri Feb 17 15:55:40 EST 1995