397 
sftp> pwd 
Remote working directory: /test1 
sftp> cdup 
Current Directory is:/ 
sftp> pwd 
Remote working directory: / 
sftp> 
delete 
Use delete to delete a file from the SFTP server. 
Syntax 
delete remote-file 
Views 
SFTP client view 
Predefined user roles 
network-admin 
Parameters 
remote-file: Specifies a file to delete from the server. 
Usage guidelines 
This command functions as the remove command. 
Examples 
# Delete the file temp.c from the server. 
sftp> delete temp.c 
Removing /temp.c 
dir 
Use dir to display information about the files and subdirectories under a directory. 
Syntax 
dir [ -a | -l ] [ remote-path ] 
Views 
SFTP client view 
Predefined user roles 
network-admin 
Parameters 
-a: Displays detailed information about the files and subdirectories under a directory in a list. 
-l: Displays detailed information about the files and subdirectories under a directory in a list. 
remote-path: Specifies the name of the directory to be queried. If this argument is not specified, the 
command displays information about the files and subdirectories under the current working directory.