A P P E N D I X B Working With The Cisco Ios File System, Configuration Files, And Software Images; Setting The Default File System; Displaying Information About Files On A File System; Changing Directories And Displaying The Working Directory - Cisco WS-C3560-48PS-S Software Configuration Manual

Software configuration guide
Hide thumbs Also See for WS-C3560-48PS-S:
Table of Contents

Advertisement

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

Setting the Default File System

You can specify the file system or directory that the system uses as the default file system by using the
cd filesystem: privileged EXEC command. You can set the default file system to omit the filesystem:
argument from related commands. For example, for all privileged EXEC commands that have the
optional filesystem: argument, the system uses the file system specified by the cd command.
By default, the default file system is flash:.
You can display the current default file system as specified by the cd command by using the pwd
privileged EXEC command.

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
Table B-2
Commands for Displaying Information About Files
Command
dir [/all] [filesystem:][filename]
show file systems
show file information file-url
show file descriptors

Changing Directories and Displaying the Working Directory

Beginning in privileged EXEC mode, follow these steps to change directories and display the working
directory.
Command
Step 1
dir filesystem:
Step 2
cd new_configs
Step 3
pwd
78-16156-01
B-2:
Description
Display a list of files on a file system.
Display more information about each of the files on a file system.
Display information about a specific file.
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.
Purpose
Display the directories on the specified file system.
For filesystem:, use flash: for the system board Flash device.
Change to the directory of interest.
The command example shows how to change to the directory named
new_configs.
Display the working directory.
Working with the Flash File System
Catalyst 3560 Switch Software Configuration Guide
B-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents