302 CHAPTER 11: SYSTEM MANAGEMENT
Managing Files You can use the file system to delete, undelete, or permanently delete a file. It can
also be used to display file contents; rename, copy, and move a file; and display
the information about a specified file. Use the commands in
Table 2 to perform file
operations.
Perform the following operations in user view.
Formatting Storage
Devices
The file system can be used to format the flash memory on the Switch 8800 fabric
module.
Perform the following operation in user view.
Setting the Prompt
Mode of the File System
Use the command in Table 4 to confirm prompts for file system commands.
Perform the following operation in system view.
Delete a directory rmdir directory
Display the current working directory pwd
Display the information about directories or
files
dir [ / all ] [ file-url ]
Change the current directory cd directory
Table 1 Directory Operation
Operation Command
Table 2 File Operation
Operation Command
Delete a file from the file system and move it
to the recycle bin
delete file-url
Restore a file from the recycle bin undelete file-url
Delete a file from the recycle bin permanently reset recycle-bin file-url
View contents of a file more file-url
Rename a file rename fileurl-source fileurl-dest
Copy a file copy fileurl-source fileurl-dest
Move a file move fileurl-source fileurl-dest
Display the information about directories or
files
dir [ / all ] [ file-url ]
Execute a batch file (system view) execute filename
Table 3 Formatting Storage Devices
Operation Command
Format the storage device format filesystem
Table 4 File System Operation
Operation Command
Set the file system prompt mode. file prompt { alert | quiet }