966
C
56: SSH T
HAPTER
ERMINAL
mkdir
put
pwd
S
C
C
ERVICE
ONFIGURATION
OMMANDS
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
Syntax
mkdir remote-path
View
SFTP Client view
Parameter
remote-path: Name of a directory on the remote SFTP server.
Description
Use the mkdir command to create a directory on the remote SFTP server.
Example
# Create directory test on the remote SFTP server.
sftp-client> mkdir test
Syntax
put local-file [ remote-file ]
View
SFTP Client view
Parameter
local-file: Name of a local file.
remote-file: Name of a file on the remote SFTP server.
Description
Use the put command to upload a local file to the remote SFTP server.
By default, if no name of the file on the remote server is specified, it is assumed
that the file on the remote server has the same name as the local file.
Example
# Upload local file temp.c to the remote SFTP server and save it with the name
temp1.c.
sftp-client> put temp.c temp1.c
Syntax
pwd
View
SFTP Client view
Parameter
None
nogroup
0 Sep 28 08:18 new2
nogroup
225 Sep 28 08:30 pub2