1Z0-822 · Question #98
Consider the following commands on a newly installed system: zfs set compression=on rpool zfs get -H -0 source compression rpool What is the output of the second command?
The correct answer is C. local. The zfs get command supports the -H and -o options, which are designed for scripting. You can use the -H option to omit header information and to replace white space with the Tab character. Uniform white space allows for easily parseable data. You can use the -o option to…
Question
Consider the following commands on a newly installed system:
zfs set compression=on rpool zfs get -H -0 source compression rpool What is the output of the second command?
Options
- Adefault
- B?
- Clocal
- Don
How the community answered
(42 responses)- A7% (3)
- B12% (5)
- C76% (32)
- D5% (2)
Explanation
The zfs get command supports the -H and -o options, which are designed for scripting. You can use the -H option to omit header information and to replace white space with the Tab character. Uniform white space allows for easily parseable data. You can use the -o option to customize the output in the following ways: * The literal name can be used with a comma-separated list of properties as defined in the Introducing ZFS Properties section. * A comma-separated list of literal fields, name, value, property, and source, to be output followed by a space and an argument, which is a comma-separated list of properties. The following example shows how to retrieve a single value by using the -H and -o options of zfs # zfs get -H -o value compression tank/home
Topics
Community Discussion
No community discussion yet for this question.