HP TippingPoint Next Generation Firewall manual Version, ‘read-only’

Page 29

Related Object

pwd

version

Displays the system and component versions.

Usage

version

Related Objects

sw

vi

viis 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.

 

 

Security Management System CLI Reference 19

Image 29
Contents HP TippingPoint Security Management System CLI Reference Unix is a registered trademark of The Open Group Table of Contents SMS Attributes and Objects List of Tables Page About This Guide Document Conventions Document Messages Customer Support Using the Command Line Interface Remote Paths Help Command Lists all commands, objects, and attributes Cls ClearConsole DateDir FactoryresetDns ExitHelp FtpGet Kbdcfg IfconfigIpconfig Key MgmtsettingsList MonitorPassword NicsettingsNotify NtpPing Ping6 RebootQuit ResolveRestart Service-accessReverse RoutesSet SetupShutdown SnmpSnmp-trap Snmp-requestSnmpwalk SnmpgetSsh TimeTraceroute TouchUsers Update‘read-only’ VersionWho ViewWeb Cli SMS Attributes and ObjectsCtl To set ctl.upgrade-source , this takes Time that the database was String Read-only Re-initialized High availability Health Indication for Celsius Designation KbdLicense Net LogsFor information on set net, see set on Related Commands 11 net Attributes Description Type Access Range Pkg 13 pkg Attributes Description Type Access Range Pwd Radius RadiusPAP, CHAP, MSCHAP, MSCHAP2 EAPMD5 RouteSmtp Route6SHA DES Attrib used to remove an Snmp trap String Write-only TripleDES Examples Snmp.trap-user Svc To true. To disable, set to false Example Sys 24 time Attributes Description Type Access Range SMS Attributes and Objects
Related manuals
Manual 252 pages 61.66 Kb Manual 68 pages 46.8 Kb Manual 54 pages 53.98 Kb