
113
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.
You cannot access a storage medium while another user is repairing, formatting, or partitioning the
medium.
To access a storage medium after the medium is repaired, formatted, or partitioned, use one of the
following methods:
•
Specify the storage medium name for the command. For example, use
dir flash:/
to display all
files and folders on the flash memory.
•
Use the
cd
command to change to the storage medium before using the command. For
example, use
cd flash:/
to change to the root directory of the flash memory, and then use
dir
to
display all files and folders.
The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for
features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more
information about FIPS mode, see
Security Configuration Guide
.
cd
Use
cd
to change the current working directory.
Syntax
cd
{
directory
|
..
}
Views
User view
Predefined user roles
network-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, an error
message appears 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.