Directory operations, File operations, 2 file operations – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 522: D object, file system operations fall into

Advertising
background image

56-2

Directory Operations

Directory operations include create, delete, display the current path, display specified directory or file
information as shown in the following table:

To do…

Use the command…

Remarks

Create a directory

mkdir

directory

Optional
Available in user view

Remove a directory

rmdir

directory

Optional
Available in user view

Display the current path

pwd

Optional
Available in user view

Display files or directories

dir

[ /all ] [ file-url ]

Optional
Available in user view

Change the current path

cd

directory

Optional
Available in user view

z

The directory to be removed must be empty, meaning before you remove a directory, you must
delete all the files and the subdirectory under this directory. For file deletion, refer to the delete
command and for subdirectory deletion, refer to the rmdir command.

z

After the execution of the rmdir command, the files in this directory will be automatically deleted for
ever.

File Operations

File operations include delete (removing files into the recycle bin), restore the deleted, permanently
delete (deleting files from the recycle bin), display, rename, copy, and move files, and display specified
directory or file information as shown in the following table:

To do…

Use the command…

Remarks

Remove a file to the recycle bin or
delete it permanently

delete

[ /unreserved ] file-url

Optional
Available in user view

Restore a file from the recycle bin

undelete

file-url

Optional
Available in user view

Empty the recycle bin

reset recycle-bin

[ /force ]

Optional
Available in user view

Display the contents of a file

more

file-url

Optional
Currently only a .txt file can be
displayed.
Available in user view

Rename a file

rename

fileurl-source fileurl-dest

Optional
Available in user view

Advertising