Command Manual (For Soliton) – FTP-SFTP-TFTP
H3C S3100 Series Ethernet Switches
Chapter 1 FTP and SFTP Configuration
Commands
1-27
1.4.5 dir
Syntax
dir
[
-a
|
-l
] [
remote-path
]
View
SFTP client view
Parameters
-a
: Displays the file and folder names in a specified directory.
-l
: Displays the details about files and folders in a specified directory in a list.
remote-path
: Name of the path where the file and folders to be queried reside.
Description
Use the
dir
command to query a specified directory on the remote SFTP server.
If
-a
or
-l
is not specified, the command displays details about the files and folders in the
specified directory in a list.
If no remote path is specified, this command displays the files in the current working
directory.
This command has the same effect as that of the
Is
command.
Examples
# Display the files in the current directory.
sftp-client> dir
-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
-rwxrwxrwx 1 noone nogroup 225 Sep 28 08:28 pub1
drwxrwxrwx 1 noone nogroup 0 Sep 28 08:24 new1
drwxrwxrwx 1 noone nogroup 0 Sep 28 08:18 new2
-rwxrwxrwx 1 noone nogroup 225 Sep 28 08:30 pub2
Received status: End of file
Received status: Success
1.4.6 exit
Syntax
exit