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

Changing the current working directory, Creating a directory, Managing storage medium space, Command

Page 93 highlights

Task Display the current working directory. Command pwd Changing the current working directory Perform this task in user view. Task Change the current working directory. Command cd { directory | .. | / } Creating a directory Perform this task in user view. Task Create a directory. Command mkdir directory Removing a directory Before you remove a directory, you must delete all files and subdirectories in this directory. To delete a file, use the delete command; to delete a subdirectory, use the rmdir command. The rmdir command automatically deletes the files in the recycle bin in the current directory. Perform this task in user view. Task Remove a directory. Command rmdir directory Managing storage medium space When the space of a storage medium becomes inaccessible, you can use the fixdisk command to examine the medium for damage and repair any damage. The format command formats the storage medium, and all data on the storage medium is deleted. CAUTION: After a storage medium is formatted, all files 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. To manage the space of a storage medium, perform the following tasks in user view: Task Repair a storage medium. Format a storage medium. Command fixdisk device format device Remarks N/A 87

  • 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

87
Task
Command
Display the current working directory.
pwd
Changing the current working directory
Perform this task in user view.
Task
Command
Change the current working directory.
cd
{
directory
|
..
|
/
}
Creating a directory
Perform this task in user view.
Task
Command
Create a directory.
mkdir
directory
Removing a directory
Before you remove a directory, you must delete all files and subdirectories in this directory. To delete a file,
use the
delete
command; to delete a subdirectory, use the
rmdir
command.
The
rmdir
command automatically deletes the files in the recycle bin in the current directory.
Perform this task in user view.
Task
Command
Remove a directory.
rmdir
directory
Managing storage medium space
When the space of a storage medium becomes inaccessible, you can use the
fixdisk
command to
examine the medium for damage and repair any damage.
The
format
command formats the storage medium, and all data on the storage medium is deleted.
CAUTION:
After a storage medium is formatted, all files 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.
To manage the space of a storage medium, perform the following tasks in user view:
Task
Command
Remarks
Repair a storage medium.
fixdisk
device
N/A
Format a storage medium.
format
device