File operations, Displaying file information, Displaying the contents of a file – H3C Technologies H3C S5120 Series Switches User Manual

Page 604: Renaming a file

Advertising
background image

1-3

z

The directory to be removed must be empty, meaning that 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; for subdirectory deletion, refer to the rmdir command.

z

After you execute the rmdir command successfully, the files in the recycle bin under the directory

will be automatically deleted.

File Operations

File operations include displaying the specified directory or file information; displaying file contents;

renaming, copying, moving, removing, restoring, and deleting files.

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 text files can be
displayed.

Available in user view

Renaming a File

To do…

Use the command…

Remarks

Rename a file

rename fileurl-source
fileurl-dest

Required

Available in user view

Advertising