beautypg.com

6.7. vim (text editor), Usage, Vim 'filename' commands i - enter insert mode – Gasboy SiteOmat Maintenance Manual User Manual

Page 226: Esc : --- move to command line, On command line - bottom line start with : (colon), 6.8. less (text file viewer), Less filename, Sub-commands - entered on bottom line, Sometext - searches text downward, Sometext - searches text upwards

background image

222

SiteOmat Setup and Maintenance Manual – MDE 4817G

8-6.7. vim (Text editor)

Usage:

$ vim 'filename'
Commands

i - Enter insert mode

ESC : --- move to command line

On command line - bottom line start with : (colon)

w - write file
q - quit
q! - force quit without saving
wq - write and quit

8-6.8. less (Text file viewer)

Usage:

$ less filename

Sub-commands - entered on bottom line

• /SOMETEXT - searches text downward

• ?SOMETEXT - searches text upwards

• shift G - go to last line

• shift F - start 'tail' mode show new lines - Ctrl-C to quit

• q - quit

8-6.9. tail (Display continuously file added lines)

Usage:

$ tail –f filename

Ctrl-C - to quit

8-6.10. cd (Change current directory)

Usage:

$ cd /usr/local/orpak

8-6.11. pwd (Show current directory)

Usage:

$ pwd

/usr/local/orpak/bin