THE VIRTUAL SERVER HANDBOOK
Command
Example
Definition
username
virtual
virtual sendmail  
Used for running programs in the virtual
bp
environment.
virtual ./test.cgi
test the 
test.cgi
 from the command line
Editing files online
Downloading files, editing, then uploading the files is not the fastest way to
make simple changes. The experienced Virtual Server Administrator uses
an online editor to make changes to files while in a Telnet or SSH session.
Below are a couple of the online editors available.
Using vi to edit
Vi is a common UNIX editor. The commands in vi are a bit difficult to get
used to at first. When you get used to the commands it is a powerful tool.
Here are some of the basic commands.
Command
Effect
vi filename
open a file in the vi editor
j
Move down a line
k
Move up a line
l
Move right
h
Move left
i
Insert text at the cursor   changes to the edit
mode use ESC to exit the edit mode
a
Add text after the cursor
o
open a blank line below the cursor
ESC
Exit the edit mode
SHFT g
Move to the bottom of the file
CTRL g
Report what line the cursor is line
:1,10d
Delete lines 1 10
x
Delete the character the cursor is on
dd
Delete the line the cursor is on
/test
Search for test
:1
move to line one
:q
Quit vi
:q!
Quit vi without saving changes
:wq
Save file and quit vi
:%s/test/foo/g
Search for 
test
 and replace it with 
foo
throughout the file.
Using Pico to edit
Pico is a bit more straight forward than vi. You can just move the cursor
and type or delete text. The commands are listed at the bottom of the screen.
To edit a file, enter:
pico filename
COPYRIGHT 
 1999  DIGITAL TOOLS  LLC.
40




  

Home

About Services Network Support FAQ Order Contact
 

Web Cam WebHosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved