putdgrp - edits device group table
putdgrp [-d] dgroup [device]...
putdgrp modifies the device group table. It performs two kinds of modification. It can modify the table by creating a new device group or removing a device group. It can also change group definitions by adding or removing a device from the group definition.
When the command is invoked with only a dgroup specification, the command adds the specified group name to the device group table if it does not already exist. If the -d option is also used with only the dgroup specification, the command deletes the group from the table.
When the command is invoked with both a dgroup and a device specification, it adds the given device name(s) to the group definition. When invoked with both arguments and the -d option, the command deletes the device name(s) from the group definition.
When the command is invoked with both a dgroup and a device specification and the device group does not exist, it creates the group and adds the specified devices to that new group.
The following options are supported:
-d
The following operands are supported:
dgroup
device
The following exit values are returned:
0
1
2
3
4
Example 1 Adding a new device group.
The following example adds a new device group:
example# putdgrp floppies
Example 2 Adding a device to a device group.
The following example adds a device to a device group:
example# putdgrp floppies diskette2
Example 3 Deleting a device group.
The following example deletes a device group:
example# putdgrp -d floppies
Example 4 Deleting a device from a device group.
The following example deletes a device from a device group:
example# putdgrp -d floppies diskette2
/etc/dgroup.tab
See attributes(5) for descriptions of the following attributes:
|
listdgrp(1M), putdev(1M), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |