Working with sftp files – H3C Technologies H3C SecPath F1000-E User Manual
Page 83

4
To do…
Use the command…
Remarks
Display the current working
directory of the remote SFTP server pwd
Optional
dir [ -a | -l ] [ remote-path ]
Display files under a specified
directory
ls [ -a | -l ] [ remote-path ]
Optional
The dir command functions as the
ls command.
Change the name of a specified
directory on the SFTP server
rename oldname newname
Optional
Create a new directory on the
remote SFTP server
mkdir remote-path
Optional
Delete one or more directories from
the SFTP server
rmdir remote-path&<1-10>
Optional
Working with SFTP Files
SFTP file operations include:
•
Changing the name of a file
•
Downloading a file
•
Uploading a file
•
Displaying a list of the files
•
Deleting a file
Follow these steps to work with SFTP files:
To do…
Use the command…
Remarks
Enter SFTP client view
For more information, see
Establishing a Connection to the
SFTP Server
Required
Execute the command in user view.
Change the name of a specified
file or directory on the SFTP server rename old-name new-name
Optional
Download a file from the remote
server and save it locally
get remote-file [ local-file ]
Optional
Upload a local file to the remote
SFTP server
put local-file [ remote-file ]
Optional
dir [ -a | -l ] [ remote-path ]
Display the files under a specified
directory
ls [ -a | -l ] [ remote-path ]
Optional
The dir command functions as the
ls command.
delete remote-file&<1-10>
Delete one or more directories from
the SFTP server
remove remote-file&<1-10>
Optional
The delete command functions as
the remove command.