HP 5920 Command Reference Manual page 258

Table of Contents

Advertisement

ls
Use ls to display information about the files and sub-directories under a specified 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 specified directory.
-l: Displays detailed information about the files and sub-directories under a specified 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 specified 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
drwxrwxrwx
-rwxrwxrwx
-rwxrwxrwx
drwxrwxrwx
drwxrwxrwx
drwxrwxrwx
1 1
1
1 1
1
1 1
1
1 1
1
1 1
1
1 1
1
2048 Jan
1 00:00 diagfile
548 Jan
2 00:17 dsakey
716 Jan
2 00:17 hostkey
2048 Jan
1 11:47 logfile
2048 Jan
2 00:27 new1
2048 Jan
1 08:49 new2
246

Advertisement

Table of Contents
loading

This manual is also suitable for:

59005920 series5900 series

Table of Contents