User guide

Working With Configuration Files Configuration Files Overview
OmniSwitch 7700/7800/8800 Switch Management Guide April 2006 page 6-9
Displaying a Text File
The more command allows you to view a text file one screen at a time. Use this command with the
desired filename. Specifying a path is optional. The following command will display the textfile.rtf text
file located in the /flash/working directory.
-> more /flash/working/textfile.rtf
The switch will display the file text on your terminal screen until the entire screen is full. After that, when
you press Enter, the switch will scroll the file text until it fills up another screen or until the end of the file.
The more mode assumes a screen that is 80 columns wide and 24 lines long.
Text Editing on the Switch
The switch software includes a standard UNIX-type line editor called “Vi”. The Vi editor is available on
most UNIX systems. No attempt is being made to document Vi in this manual because information on it is
freely available on the Internet.
Invoke the “Vi” Editor
You can invoke the Vi editor from the command line. Use the following syntax to view the switchlog.txt
file located in the /flash/working directory:
-> vi /flash/working switchlog.txt
You can invoke the Vi editor in read-only mode by using the following syntax.
-> view
To exit the Vi editor, use the Cap ZZ key sequence.