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 filenamewhere 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"