
Security Management System CLI Reference 19
Related Object
pwd
version
Displays the system and component versions.
Usage
version
Related Objects
sw
vi
vi is a text editor that is comparable to Vi. It can be used to edit all kinds of plain text. It is especially useful
for editing programs. While running vi, a lot of help can be obtained from the on-line help system, with the
:help command.
Usage
vi [options] [file ...]
Caveats
/tmp and its contents are the only files and directories that the SuperUser account has permission to
modify. When accessing files you must specify the complete path name (for example: vi
/tmp/FileName.txt). After seven days without modification, files in this directory are removed.
Options
The options may be given in any order, before or after filenames. Options without an argument can be
combined after a single dash.
Table 2-6 vi Options
Options Descriptions
+[num]
For the first file the cursor will be positioned on line num. If num is
missing, the cursor will be positioned on the last line.
+/{pat}
For the first file the cursor will be positioned on the first occurrence of
{pat}. See “:help search-pattern” for the available search patterns.
-h
Give a bit of help about the command line arguments and options.
After this, Vi exits.
-m
Modifying files is disabled. Resets the write option, so that writing
files is not possible.
-n
No swap file will be used. Recovery after a crash will be impossible.
Handy if you want to edit a file on a very slow medium (e.g. floppy).
Can also be done with :set uc=0.Can be undone with :set uc=200.
-R
Read-only mode. The read-only option will be set. You can still edit
the buffer, but will be prevented from accidently overwriting a file. If
you do want to overwrite a file, add an exclamation mark to the Ex
command, as in :w!. The -R option also implies the -n option (see
below). The read-only option can be reset with :set noro. See :help
‘read-only’.
-r {file}
Recovery mode. The swap file is used to recover a crashed editing
session. The swap file is a file with the same filename as the text file
with .swp appended. See :help recovery.
Commentaires sur ces manuels