465
remote-path
: Specifies the name of the directory to be queried. If you do not specify this argument,
the command displays information about the files and subdirectories under the current working
directory.
Usage guidelines
If you do not specify both of the
–a
and
–l
keywords, this command displays the names of the files
and subdirectories under a directory.
This command has the same function as the
dir
command.
Examples
# Display detailed information about the files and subdirectories under the current directory, including
the files and subdirectories with names starting with dots (.).
sftp> ls -a
drwxrwxrwx 2 1 1 512 Dec 18 14:12 .
drwxrwxrwx 2 1 1 512 Dec 18 14:12 ..
-rwxrwxrwx 1 1 1 301 Dec 18 14:11 010.pub
-rwxrwxrwx 1 1 1 301 Dec 18 14:12 011.pub
-rwxrwxrwx 1 1 1 301 Dec 18 14:12 012.pub
# Display detailed information about the files and subdirectories under the current working directory,
excluding the files and subdirectories with names starting with dots (.).
sftp> ls -l
-rwxrwxrwx 1 1 1 301 Dec 18 14:11 010.pub
-rwxrwxrwx 1 1 1 301 Dec 18 14:12 011.pub
-rwxrwxrwx 1 1 1 301 Dec 18 14:12 012.pub
mkdir
Use
mkdir
to create a directory on the SFTP server.
Syntax
mkdir
remote-path
Views
SFTP client view
Predefined user roles
network-admin
mdc-admin
Parameters
remote-path
: Specifies the name of a directory.
Examples
# Create a directory named
test
on the SFTP server.
sftp> mkdir test
put
Use
put
to upload a local file to the SFTP server.
Syntax
put
local-file
[
remote-file
]
Содержание FlexNetwork 7500 Series
Страница 350: ...335 Related commands display port security port security enable ...
Страница 379: ...364 Sysname system view Sysname keychain abc mode absolute Sysname keychain abc tcp kind 252 ...
Страница 519: ...504 Related commands display ssh2 algorithm ssh2 algorithm cipher ssh2 algorithm key exchange ssh2 algorithm mac ...