R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

181
Default level
3: Manage level
Parameters
remote-file&<1-10>: Name of a file on the server. &<1-10> means that you can provide up to 10
filenames, which are separated by space.
Description
Use the delete command to delete the specified file(s) from a server.
This command functions as the remove command.
Examples
# Delete file temp.c from the server.
sftp-client> delete temp.c
The following files will be deleted:
/temp.c
Are you sure to delete it? [Y/N]:y
This operation may take a long time. Please wait...
File successfully Removed
dir
Syntax
dir [ -a | -l ] [ remote-path ]
View
SFTP client view
Default level
3: Manage level
Parameters
-a: Displays the filenames or the folder names of the specified directory.
-l: Displays in a list form detailed information of the files and folders of the specified directory.
remote-path: Name of the directory to be queried.
Description
Use the dir command to display file and folder information under a specified directory.
With the –a and –l keyword not specified, the command displays detailed information of files and folders
under the specified directory in a list form.
With the remote-path not specified, the command displays the file and folder information of the current
working directory.
This command functions as the ls command.
Examples
# Display in a list form detailed file and folder information under the current working directory.
sftp-client> dir
-rwxrwxrwx 1 noone nogroup 1759 Aug 23 06:52 config.cfg