R3303-HP HSR6800 Routers Fundamentals Command Reference
83
File system management commands
In the following examples, the current working directory is the root directory of the storage medium on the
device, and the slot numbers for active and standby MPUs are for illustration only.
For information about the qualified file name formats, see Fundamentals Configuration Guide.
cd
Use cd to change the current working directory.
Syntax
cd { directory | .. | / }
Views
User view
Default command level
3: Manage level
Parameters
directory: Name of the target directory in the format [drive:/]path. For more information about the drive
and path arguments, see Fundamentals Configuration Guide. If no drive information is provided, the
argument represents a folder or subfolder in the current directory.
..: Returns to an upper directory. If the current working directory is the root directory, or if no upper
directory exists, the current working directory does not change when the cd .. command is executed. No
online help information is available for this keyword.
/: Returns to the root directory of the storage medium. No online help information is available for this
keyword.
Examples
# Enter the test folder after logging in to the device.
<Sysname> cd test/
# Return to the upper directory. (A space is required after the keyword cd.)
<Sysname> cd ..
# Return to the root directory.
<Sysname> cd /
After you change the current directory by using the cd command, you can use the pwd command to view
the path of the current working directory.
# Enter the root directory of the CF card on the standby MPU:
<Sysname> cd slot1#cfa0:/
# Change to the test folder in the root directory of the active MPU's CF card.
<Sysname> cd cfa0:/test