Using the Device File Systems, Directories, and Files
Working with Directories
Identifying the Current Directory
To display the name of the current directory, run the following command:
pwd
Example:
switch# pwd
Changing the Current Directory
You can change the current directory for file system operations. The default directory is bootflash:.
Note
The file system, module, and directory names are case sensitive.
To change to a new directory, run the following command:
cd {directory | filesystem:[//module/][directory]}
Example:
switch# cd slot0:
Creating a Directory
You can create directories in the bootflash: and flash device file systems.
• The file system, module, and directory names are case sensitive.
Note
• The filesystem argument is case sensitive. The directory argument is alphanumeric, case sensitive,
To create a new directory, run the following command:
mkdir [filesystem:[//module/]]directory
Example:
switch# mkdir test
Displaying Directory Contents
To display the contents of a directory, run the following command:
dir [directory | filesystem:[//module/][directory]]
OL-29291-02
and can have a maximum of 64 characters.
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
Working with Directories
103