To change the default directory or file system, use the cd EXEC command.
cd [filesystem: ]
filesystem : (Optional) URL of the directory or file system followed by a colon.
The initial default file system is flash: . For platforms that do not have a physical device named flash: , the keyword flash: is aliased to the default Flash device.
If you do not specify a directory on a file system, the default is the root directory on that file system.
EXEC
Release | Modification | 11.0 | This command was introduced. |
---|
For all EXEC commands that have an optional filesystemargument, the system uses the file system specified by the cd command when you omit the optional filesystemargument. For example, the dircommand, which displays a list of files on a file system, contain an optional filesystemargument. When you omit this argument, the system lists the files on the file system specified by the cd command.
The following example sets the default file system to the Flash memory card inserted in the slot 0:
Router# pwd bootflash:/ Router# cd slot0: Router#pwd slot0:/
Command | Description |
---|---|
copy | Copies any file from a source to a destination, use the copy EXEC command. |
delete | Deletes a file on a Flash memory device. |
dir | Displays a list of files on a file system. |
pwd | Shows the current setting of the cd command. |
show file systems | Lists available file systems. |
undelete | Recovers a file marked "deleted" on a Class A or Class B Flash file system. |
Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003
All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.