Viewing a file

You can look at a file without the risk of altering its contents by using vi in "read only" mode. To do this, use the command:

   view filename

The message [Read only] is displayed at the bottom of the screen.

You then use the same commands as you would in vi to move around, search for text and quit view.


[Home] [Search] [Index] This site maintained by webmaster@cs.auckland.ac.nz