296 CHAPTER 12: FILE SYSTEM MANAGEMENT
Directory Operation You can use the file system to create or delete a directory, display the current
working directory, and display the information about the files or directories under
a specified directory. You can use the following commands to perform directory
operations.
Perform the following configuration in User View.
Table 333 Directory Operation
File Operation The file system can be used to delete or undelete a file and permanently delete a
file. Also, it can be used to display file contents, rename, copy and move a file and
display the information about a specified file.
Using the delete file-url command to delete a file, leaves the contents of the
file on the flash file system and does not free flash space. The file can be recovered
using the
undelete command. To delete a file and free space on the flash file
system use the
delete /unreserved file-url command. Using this command
will ensure that space is made available on the flash file system for additional
information. To ensure that all deleted files have been removed from the system
use the
reset recycle-bin command, this will prompt for removal of all files in
the file system.
When operating in a stack of switches to clear space the user has to change to the
flash of each switch in the stack separatly and then clear space in the file system of
each switch in turn. Use the
cd directory command for changing focus to a
different switches file system or the
unit2>flash: device name parameter for
the command "reset recycle".
You can use the following commands to perform file operations.
Perform the following configuration in User View.
Table 334 File Operation
Operation Command
Create a directory mkdir
directory
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
Operation Command
Delete a file delete [ /unreserved ]
file-url
Undelete a file undelete
file-url
Delete a file from the recycle bin permanently reset recycle-bin [
file-url
] [
/ force ]
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
✽