340
Syntax
dir
[
-a
|
-l
] [
remote-path
]
Views
SFTP client view
Default command level
3: Manage level
Parameters
-a
: Displays the names of the files and sub-directories under the specified directory.
-l
: Displays detailed information about the files and sub-directories under the specified directory in
the form of a list.
remote-path
: Specifies the directory to be queried. If this
argument is not specified, the command
displays information about the files and sub-directories under the current working directory.
Usage guidelines
If you do not specify the
–a
keyword or the
–l
keyword, the command displays detailed information
about the files and sub-directories under the specified directory in the form of a list.
This command functions as the
ls
command.
Examples
# Display detailed information about the files and sub-directories under the current working directory
in the form of a list.
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
display sftp client source
Use
display sftp client source
to display the source IP address or source interface configured for
the SFTP client.
Syntax
display sftp client source
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Views
Any view
Default command level
1: Monitor level
Parameters
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.