ls - List remote files in SFTP

You can view the files present in the remote directory in one shot by "ls" command.

Syntax:
psftp> ls


Note:
ls command will have the same effect as "dir"command.

Example:
psftp> pwd
current remote working directory is /home/user1
psftp> ls
file1.sh
file2.sh
file3.sh

psftp>