Cisco Systems 3750E manual Displaying Information about Files on a File System, Cd newconfigs, Pwd

Models: 3750E

1 1236
Download 1236 pages 40.08 Kb
Page 1134
Image 1134

Appendix B Working with the Cisco IOS File System, Configuration Files, and Software Images

Working with the Flash File System

Displaying Information about Files on a File System

You can view a list of the contents of a file system before manipulating its contents. For example, before copying a new configuration file to flash memory, you might want to verify that the file system does not already contain a configuration file with the same name. Similarly, before copying a flash configuration file to another location, you might want to verify its filename for use in another command.

To display information about files on a file system, use one of the privileged EXEC commands in Table B-2:

Table B-2

Commands for Displaying Information About Files

 

 

 

Command

 

Description

 

 

dir [/all] [filesystem:][filename]

Display a list of files on a file system.

 

 

show file systems

Display more information about each of the files on a file system.

 

 

show file information file-url

Display information about a specific file.

 

 

show file descriptors

Display a list of open file descriptors. File descriptors are the internal representations

 

 

of open files. You can use this command to see if another user has a file open.

 

 

 

Changing Directories and Displaying the Working Directory

Beginning in privileged EXEC mode, follow these steps to change directories and display the working directory.

 

Command

Purpose

Step 1

 

 

dir filesystem:

Display the directories on the specified file system.

 

 

For filesystem:, use flash: for the system board flash device.

Step 2

 

 

cd new_configs

Change to the directory of interest.

 

 

The command example shows how to change to the directory named

 

 

new_configs.

Step 3

 

 

pwd

Display the working directory.

 

 

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

B-4

OL-9775-02

 

 

 

Page 1134
Image 1134
Cisco Systems 3750E manual Displaying Information about Files on a File System, Cd newconfigs, Pwd