Purpose
Command or Action
Verifies your entry.
dir filesystem:
Example:
Switch# dir flash:
Step 3
Removing Directories
To remove a directory with all its files and subdirectories, use the
delete /force /recursive filesystem:/file-url
privileged EXEC command.
Use the
/recursive
keyword to delete the named directory and all subdirectories and the files contained in it.
Use the
/force
keyword to suppress the prompting that confirms a deletion of each file in the directory. You
are prompted only once at the beginning of this deletion process.
For
filesystem
, use
flash:
for the system board flash device. For
file-url
, enter the name of the directory to be
deleted. All of the files in the directory and the directory are removed.
When directories are deleted, their contents cannot be recovered.
Caution
Copying Files
To copy a file from a source to a destination, use the
copy source-url destination-url
privileged EXEC
command. For the source and destination URLs, you can use
running-config
and
startup-config
keyword
shortcuts. For example, the
copy running-config startup-config
command saves the currently running
configuration file to the NVRAM section of flash memory to be used as the configuration during system
initialization.
You can also copy from special file systems (
xmodem:
,
ymodem:
) as the source for the file from a network
machine that uses the Xmodem or Ymodem protocol.
Network file system URLs include ftp:, rcp:, and tftp: and have these syntaxes:
•
FTP
—
ftp:[[//username [:password]@location]/directory]/filename
•
RCP
—
rcp:[[//username@location]/directory]/filename
•
TFTP
—
tftp:[[//location]/directory]/filename
Local writable file systems include flash:.
Some invalid combinations of source and destination exist. Specifically, you cannot copy these combinations:
•
From a running configuration to a running configuration
•
From a startup configuration to a startup configuration
•
From a device to the same device (for example, the
copy flash: flash:
command is invalid)
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
2043
Working with the Flash File System
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......