HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 105

reset recycle-bin

Page 105 highlights

% Renamed file flash:/sample.txt to flash:/sample.bat reset recycle-bin Syntax View reset recycle-bin [ /force ] User view Default level 3: Manage level Parameters /force: Deletes all files in the recycle bin, including files that cannot be deleted by the command without the /force keyword. Description Use reset recycle-bin to permanently delete the files in the recycle bin in the current directory. If a file is corrupted, you may not be able to delete the file using the reset recycle-bin command. Use the reset recycle-bin /force command to delete the corrupted file in the recycle bin forcibly. The delete file-url command only moves a file to the recycle bin. To permanently delete the file in the recycle bin, use the reset recycle-bin command in the original directory of the file. The reset recycle-bin command deletes files in the current directory and in the recycle bin. If the original path of the file to be deleted is not the current directory, use the cd command to enter the original directory of the file, and then execute the reset recycle-bin command. Examples # Delete file b.cfg in the current directory and in the recycle bin: 1. Display all the files in the recycle bin and in the current directory. dir /all Directory of flash:/ 0 -rwh 3080 Apr 26 2011 16:41:43 private-data.txt 1 -rw- 2416 Apr 26 2011 13:45:36 config.cfg 2 -rw- 13308645 May 14 2011 10:13:18 main.bin 3 -rw- 2386 Apr 26 2011 13:30:30 back.cfg 4 drw- - May 08 2011 09:49:25 test 5 -rwh 716 Apr 24 2011 16:17:30 hostkey 6 -rwh 572 Apr 24 2011 16:17:44 serverkey 7 -rw- 2386 May 08 2011 11:14:20 [a.cfg] 8 -rw- 3608 Dec 03 2011 17:29:30 [b.cfg] 260736 KB total (6730 KB free) //The output shows that the current directory is flash:, and there are two files a.cfg and b.cfg in the recycle bin. 2. Delete file b.cfg in the current directory and in the recycle bin. reset recycle-bin Clear flash:/~/a.cfg ?[Y/N]:n 98

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

98
% Renamed file flash:/sample.txt to flash:/sample.bat
reset recycle-bin
Syntax
reset recycle-bin
[ /
force
]
View
User view
Default level
3: Manage level
Parameters
/force
: Deletes all files in the recycle bin, including files that cannot be deleted by the command without
the
/force
keyword.
Description
Use
reset recycle-bin
to permanently delete the files in the recycle bin in the current directory.
If a file is corrupted, you may not be able to delete the file using the
reset recycle-bin
command. Use the
reset recycle-bin /force
command to delete the corrupted file in the recycle bin forcibly.
The
delete
file
-
url
command only moves a file to the recycle bin. To permanently delete the file in the
recycle bin, use the
reset recycle-bin
command in the original directory of the file.
The
reset recycle-bin
command deletes files in the current directory and in the recycle bin. If the original
path of the file to be deleted is not the current directory, use the
cd
command to enter the original
directory of the file, and then execute the
reset recycle-bin
command.
Examples
# Delete file
b.cfg
in the current directory and in the recycle bin:
1.
Display all the files in the recycle bin and in the current directory.
<Sysname> dir /all
Directory of flash:/
0
-rwh
3080
Apr 26 2011 16:41:43
private-data.txt
1
-rw-
2416
Apr 26 2011 13:45:36
config.cfg
2
-rw-
13308645 May 14 2011 10:13:18
main.bin
3
-rw-
2386
Apr 26 2011 13:30:30
back.cfg
4
drw-
-
May 08 2011 09:49:25
test
5
-rwh
716
Apr 24 2011 16:17:30
hostkey
6
-rwh
572
Apr 24 2011 16:17:44
serverkey
7
-rw-
2386
May 08 2011 11:14:20
[a.cfg]
8
-rw-
3608
Dec 03 2011 17:29:30
[b.cfg]
260736 KB total (6730 KB free)
//The output shows that the current directory is
flash:
, and there are two files
a.cfg
and
b.cfg
in the
recycle bin.
2.
Delete file
b.cfg
in the current directory and in the recycle bin.
<Sysname> reset recycle-bin
Clear flash:/~/a.cfg ?[Y/N]:n