|
8#
楼主 |
发表于 2020-3-3 22:21:15
|
只看该作者
MAP 命令使用说明:
MAP [-d <sname>]
MAP [[-r | -u][-v][-c][-f][-t <type[,type...]>][sname]]
MAP [sname handle | mapname]
-d - Delete a mapping
-r - Reset to default mappings
-u - Update mappings
-v - Display verbose mapping information
sname - User defined mapping name (wildcards are permitted)
handle - The number of handle, which is same as dumped from 'dh' command
-c - Display the consistent mapping name
-f - Display the normal mapping name(not consistent mapping)
-t - Display the device mapping name according to the device type:
fp - Floppy
hd - Hard Disk
cd - CD-ROM
Types can be combined by putting a comma between two types.
Spaces are not allowed between types.
mapname - Mapped name for the device followed by a postfix ':'
Note:
1. The consistent mapping is persistent across the mapping reset and the
system reboot.
2. Only characters and numbers are allowed inside of sname.
3. Redirection is not allowed when running map because we do not know the
file system before mapping is done.
4. Output redirection is not supported for 'map -r' usage.
5. Option '-u' will only add/delete the mappings for new/removed devices.
The unchanged device mappings with user-defined mappings are unchanged.
The current dir, if current device is not changed, will also be
preserved.
在脚本内运行测试过如下都失败
MAP -r | -u
MAP -r
MAP -u |
|