Linux and UNIX Man Pages

Test Your Knowledge in Computers #420
Difficulty: Medium
JavaScript supports much of the structured programming syntax from C (e.g., if statements, while loops, switch statements, do while loops, etc.).
True or False?
Linux & Unix Commands - Search Man Pages

devattr(1m) [opensolaris man page]

devattr(1M)						  System Administration Commands					       devattr(1M)

NAME
devattr - display device attributes SYNOPSIS
devattr [-v] device [attribute]... DESCRIPTION
devattr displays the values for a device's attributes. The display can be presented in two formats. Used without the -v option, only the attribute values are shown. Used with the -v option, the attributes are shown in an attribute=value format. When no attributes are given on the command line, all attributes for the specified device are displayed in alphabetical order by attribute name. If attributes are given on the command line, only those attributes are shown, displayed in command line order. OPTIONS
The following options are supported: -v Specifies verbose format. Attribute values are displayed in an attribute=value format. OPERANDS
The following operands are supported: attribute Defines which attribute, or attributes, should be shown. Default is to show all attributes for a device. See the putdev(1M) manual page for a complete listing and description of available attributes. device Defines the device whose attributes should be displayed. Can be the pathname of the device or the device alias. EXIT STATUS
The following exit values are returned: 0 successful completion. 1 Command syntax was incorrect, invalid option was used, or an internal error occurred. 2 Device table could not be opened for reading. 3 Requested device could not be found in the device table. 4 Requested attribute was not defined for the specified device. FILES
/etc/device.tab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
getdev(1M), putdev(1M), attributes(5) SunOS 5.11 5 Jul 1990 devattr(1M)

Check Out this Related Man Page

putdgrp(1M)						  System Administration Commands					       putdgrp(1M)

NAME
putdgrp - edits device group table SYNOPSIS
putdgrp [-d] dgroup [device]... DESCRIPTION
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. OPTIONS
The following options are supported: -d Delete the group or, if used with device, delete the device from a group definition. OPERANDS
The following operands are supported: dgroup Specify a device group name. device Specify the pathname or alias of the device that is to be added to, or deleted from, the device group. EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 Command syntax was incorrect, an invalid option was used, or an internal error occurred. 2 Device group table could not be opened for reading or a new device group table could not be created. 3 If executed with the -d option, indicates that an entry in the device group table for the device group dgroup does not exist and so cannot be deleted. Otherwise, indicates that the device group dgroup already exists and cannot be added. 4 If executed with the -d option, indicates that the device group dgroup does not have as members one or more of the specified devices. Otherwise, indicates that the device group dgroup already has one or more of the specified devices as members. EXAMPLES
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 FILES
/etc/dgroup.tab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
listdgrp(1M), putdev(1M), attributes(5) SunOS 5.11 5 Jul 1990 putdgrp(1M)

Featured Tech Videos