Set display preferences for the ONTAP CLI
You can set display preferences for a CLI session by using the set command and rows command. The preferences you set apply only to the session you are in. They are not persistent across sessions.
You can set the following CLI display preferences:
- 
The privilege level of the command session
 - 
Whether confirmations are issued for potentially disruptive commands
 - 
Whether
showcommands display all fields - 
The character or characters to use as the field separator
 - 
The default unit when reporting data sizes
 - 
The number of rows the screen displays in the current CLI session before the interface pauses output
If the preferred number of rows is not specified, it is automatically adjusted based on the actual height of the terminal. If the actual height is undefined, the default number of rows is 24.
 - 
The default storage virtual machine (SVM) or node
 - 
Whether a continuing command should stop if it encounters an error
 
- 
To set CLI display preferences, use the
setcommand.To set the number of rows the screen displays in the current CLI session, you can also use the
rowscommand.Learn more about
setandrowsin the ONTAP command reference. 
The following example sets a comma to be the field separator, sets GB as the default data-size unit, and sets the number of rows to 50:
cluster1::> set -showseparator "," -units GB cluster1::> rows 50