102
Changing the current working directory
To do…
Use the command…
Remarks
Change the current working
directory
cd
{
directory
|
..
|
/
}
Required
Available in user view
Creating a directory
To do…
Use the command…
Remarks
Create a directory
mkdir
directory
Required
Available in user view
Removing a directory
To do…
Use the command…
Remarks
Remove a directory
rmdir
directory
Required
Available in user view
NOTE:
•
Before you remove a directory, you must delete all the files and the subdirectory in this directory. To
delete a file, see the
delete
command; to delete a subdirectory, see the
rmdir
command.
•
The
rmdir
command automatically deletes the files in the recycle bin in the current directory.
Managing storage media
Managing the space of a storage medium
When the space of a storage medium becomes inaccessible, you can use the
fixdisk
command to restore
the space of the storage medium. The
format
command formats the storage medium, and all the data on
the storage medium is deleted.
Use the following commands to manage the space of a storage medium:
To do…
Use the command…
Remarks
Restore the space of a storage
medium
fixdisk
device
Optional
Available in user view
Format a storage medium
format
device
Optional
Available in user view
CAUTION:
When you format a storage medium, all the files stored on it are erased and cannot be restored. If a
startup configuration file exists on the storage medium, formatting the storage medium results in loss of the
startup configuration file.