R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
29
File system management commands
cd
Syntax
cd { directory | .. | / }
View
User view
Default level
3: Manage level
Parameters
directory: Name of the target directory, in the format of [drive:/]path. For the detailed introduction to the
drive and path arguments, see the chapter “File management configuration.” 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. This
argument does not support command online help.
/: Returns to the root directory of the storage medium. This keyword does not support command line
online help.
Description
Use the cd command to change the current working directory.
Examples
# Enter the test folder after logging in to the device.
<Sysname> cd test
# Return to the upper directory (Remember to enter a space after the keyword cd).
<Sysname> cd ..
# Return to the root directory.
<Sysname> cd /
After you change the current directory using the cd command, you can use the pwd command to view the
path of the current working directory.
copy
Syntax
copy fileurl-source fileurl-dest
View
User view
Default level
3: Manage level