HP MSR2000/3000/4000 Router Series Security Command Reference

301
put local-path [remote-path] Upload file
pwd Display remote working directory
quit Quit sftp
rename oldpath newpath Rename remote file
remove path Delete remote file
rmdir path Delete remote empty directory
? Synonym for help
ls
Use ls to display information about the files and sub-directories under a directory.
Syntax
ls [ -a | -l ] [ remote-path ]
Views
SFTP client view
Predefined user roles
network-admin
Parameters
-a: Displays the names of the files and sub-directories under a directory.
-l: Displays detailed information about the files and sub-directories under a directory in the form of a list.
remote-path: Specifies the name of the directory to be queried.
Usage guidelines
If the –a and –l keywords are not specified, the command displays the names of the files and
sub-directories under a directory.
If the remote-path argument is not specified, the command displays detailed information about the files
and sub-directories under the current working directory.
This command functions as the dir command.
Examples
# Display the names of the files and sub-directories under the current working directory.
sftp> ls –a
config.cfg
pubkey2
pubkey1
pub1
new1
new2
pub2
# Display detailed information about the files and sub-directories under the current working directory in
the form of a list.
sftp> ls -l
-rwxrwxrwx 1 noone nogroup 1759 Aug 23 06:52 config.cfg
-rwxrwxrwx 1 noone nogroup 225 Aug 24 08:01 pubkey2
-rwxrwxrwx 1 noone nogroup 283 Aug 24 07:39 pubkey1