HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 95

Setting the file system operation mode, File system management examples

Page 95 highlights

Setting the file system operation mode The file systems support the following operation modes: • alert-The system warns you about operations that might cause problems such as file corruption and data loss. To prevent incorrect operations, use the alert mode. • quiet-The system does not prompt for any operation confirmation. To set the file system operation mode: Step 1. Enter system view. 2. Set the file system operation mode. Command system-view file prompt { alert | quiet } Remarks N/A Optional. The default is alert. File system management examples # Display the files and the subdirectories in the current directory. dir Directory of flash:/ 0 -rw- 13308645 Mar 22 2011 11:34:07 1 -rw- 7380 Mar 25 2011 10:47:36 2 -rw- 228 Mar 25 2011 10:50:39 3 -rw- 3921 Apr 01 2011 17:56:30 4 -rw- 151 Apr 01 2011 17:56:24 260736 KB total (2521 KB free) main.bin patch-package.bin patchstate startup.cfg system.xml # Create new folder mytest in the test directory. cd test mkdir mytest %Created dir flash:/test/mytest. # Display the current working directory. pwd flash:/test # Display the files and the subdirectories in the test directory. dir Directory of flash:/test/ 0 drw- - Apr 01 2011 18:28:14 260736 KB total (2519 KB free) mytest # Return to the upper directory. cd .. # Display the current working directory. pwd flash: 89

  • 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

89
Setting the file system operation mode
The file systems support the following operation modes:
alert
—The system warns you about operations that might cause problems such as file corruption
and data loss. To prevent incorrect operations, use the
alert
mode.
quiet
—The system does not prompt for any operation confirmation.
To set the file system operation mode:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the file system operation
mode.
file prompt
{
alert
|
quiet
}
Optional.
The default is
alert
.
File system management examples
# Display the files and the subdirectories in the current directory.
<Sysname> dir
Directory of flash:/
0
-rw-
13308645
Mar 22 2011 11:34:07
main.bin
1
-rw-
7380
Mar 25 2011 10:47:36
patch-package.bin
2
-rw-
228
Mar 25 2011 10:50:39
patchstate
3
-rw-
3921
Apr 01 2011 17:56:30
startup.cfg
4
-rw-
151
Apr 01 2011 17:56:24
system.xml
260736 KB total (2521 KB free)
# Create new folder
mytest
in the test directory.
<Sysname> cd test
<Sysname> mkdir mytest
%Created dir flash:/test/mytest.
# Display the current working directory.
<Sysname> pwd
flash:/test
# Display the files and the subdirectories in the test directory.
<Sysname> dir
Directory of flash:/test/
0
drw-
-
Apr 01 2011 18:28:14
mytest
260736 KB total (2519 KB free)
# Return to the upper directory.
<Sysname> cd ..
# Display the current working directory.
<Sysname> pwd
flash: