107
Deleting files from the recycle bin
Each file system has a recycle bin of its own. A recycle bin is a folder named
.trash
in the root
directory of a file system.
To view which files or directories are in a recycle bin, use either of the following methods:
•
Access the file system and execute the
dir/all .trash
command.
•
Execute the
cd .trash
command to enter the recycle bin folder, and then execute the
dir
command.
To delete files from a recycle bin, perform the following task in user view:
Task
Command
Delete files from the recycle bin.
reset recycle-bin
[
/force
]
Calculating the file digest
File digests are used to verify file integrity.
Use the following commands in user view:
Task
Command
Calculate the digest of a file by using the SHA-256
algorithm.
sha256sum file
Calculate the digest of a file by using the MD5 algorithm.
md5sum file
Setting the operation mode for files
The device supports the following file operation modes:
•
alert
—The system prompts for confirmation when your operation might cause problems such
as file corruption or 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 files:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the operation mode for
files.
file prompt
{
alert
|
quiet
}
The default mode is
alert
.
This command also sets the
operation mode for directories.
Содержание FlexNetwork 10500 Series
Страница 139: ...130 Sysname display version ...