site Search:


 
    All FAQs Site FAQ DSL FAQ Cable Tech About DSL Distance DSL Hurdles »»






how-to block ads



Search for: in all FAQs
vi is an editor, text editor like Emacs or CDE

* to start vi you type in vi in the command line
* to add lines in vi hit i with nothing after it, this will enter you into entering mode
* to save a file after you done typing hit to enter command mode then hit :w filename
* then to quit vi enter a :q!
* to load a file from vi enter :e filename
* examples:::

if you wanted to edit the message of the day you would enter this command

vi /etc/motd
from the root or username command line

* to navigate in vi here are some key keys
in command mode, if you are not sure if you are in command mode hit the key a couple times.

* j = moves one line down
* k = moves one line up
* h = moves cursor one character left
* l = moves cursor one character right
* Control+F foward one page
* Control+B backwards one page

* x deletes chacter the curson is on
* dd deletes the line the curson is on

There are alot more advanced commands but these are the basic ones.


got feedback?

by MystBlade See Profile edited by Zuhaib See Profile
last modified: 2003-12-16 14:16:44


Saturday, 11-Feb 22:54:48 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online! © 1999-2012 dslreports.com.