118
File system management commands
IMPORTANT:
•
Before managing storage media, files, and directories, make sure you know the possible
impacts.
•
A file or directory whose name starts with a period (.) is considered a hidden file or directory. Do
not give a common file or directory a name that starts with a period.
•
Some system files and directories are hidden.
A file name must be specified in one of the file name formats allowed. For more information, see
Fundamentals Configuration Guide
.
Before you use the
copy
,
delete
,
fixdisk
,
format
,
gunzip
,
gzip
,
mkdir
,
move
,
rename
,
rmdir
, or
undelete
command on a USB disk, make sure the disk is not write protected.
The HPE 7904(JG682A)/HPE 7904 TAA(JH122A) switch uses one built-in MPU (slot 0) and the HPE
7910(JG841A)/HPE 7910 TAA(JH123A) switch uses two removable switching fabric modules (slots
10 and 11) for switching and control.
Unless otherwise stated, the term "card" collectively refers to LPUs, switching fabric modules, and
MPUs.
cd
Use
cd
to change the current working directory.
Syntax
cd
{
directory
|
..
}
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
directory
: Specifies the name of the destination directory, in the format [
drive
:/]
path.
For more
information about how to enter 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.
..
: Specifies the parent directory. If the current working directory is the root directory, or if no upper
directory exists, the system displays an error message when you execute the
cd ..
command. No
online help information is available for this keyword.
Examples
# Access the
test
folder after logging in to the device.
<Sysname> cd test
# Return to the upper directory.
<Sysname> cd ..
# In standalone mode, change to the
test
folder in the root directory of the MPU.
<Sysname> cd flash:/test