104
Task
Command
Create a directory.
mkdir
directory
Renaming a directory
Perform this task in user view.
Task
Command
Rename a directory.
rename
source-directory dest-directory
Archiving or extracting directories
When you archive or extract directories or display archived directories, files in the directories are also
archived, extracted, or displayed.
Perform the following tasks in user view:
Task
Command
Archive directories.
tar create
[
gz
]
archive-file
dest-file
[
verbose
]
source source-directory
&<1-5>
Extract directories.
tar extract
archive-file file
[
verbose
] [
screen
|
to
directory
]
Display archived directories.
tar list archive-file file
Deleting a directory
To delete a directory, you must delete all files and subdirectories in the directory. To delete a file, use
the
delete
command. To delete a subdirectory, use the
rmdir
command.
Deleting a directory permanently deletes all its files in the recycle bin, if any.
Perform this task in user view.
Task
Command
Delete a directory.
rmdir
directory
Setting the operation mode for directories
The device supports the following directory operation modes:
•
alert
—The system prompts for confirmation when your operation might cause problems such
as data loss. This mode provides an opportunity to cancel a disruptive operation.
•
quiet
—The system does not prompt for confirmation.
To set the operation mode for directories:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
Содержание FlexNetwork 10500 Series
Страница 139: ...130 Sysname display version ...