Creating a directory, Removing a directory, File operations – H3C Technologies H3C SecPath F1000-E User Manual

Page 170: Displaying file information, Displaying the contents of a file

Advertising
background image

3

Creating a Directory

To do…

Use the command…

Remarks

Create a directory

mkdir directory

Required
Available in user view

Removing a Directory

To do…

Use the command…

Remarks

Remove a directory

rmdir directory

Required
Available in user view

NOTE:
•

The directory to be removed must be empty, meaning that before you remove a directory, you must
delete all the files and the subdirectory in this directory. For file deletion, see the delete command; for

subdirectory deletion, see the rmdir command.

•

Execution of the rmdir command automatically deletes the files in the recycle bin in the current directory.

File Operations

You can display the specified directory or file information; display file contents; rename, copy, move,

remove, restore, and delete files.

NOTE:

You can create a file by copying, downloading or using the save command.

Displaying File Information

To do…

Use the command…

Remarks

Display file or directory

information

dir [ /all ] [ file-url ]

Required
Available in user view

Displaying the Contents of a File

To do…

Use the command…

Remarks

Display the contents of a file

more file-url

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

Advertising