Monday, 21 May 2012
 Home arrow Blog arrow Enable vi ksh command line editing
   
Main Menu
Home
News
Blog
Links
Search
FAQs
Spider
Articles
@intrenet
Free Softwares
Break for fun
Friends VIdeos
Techno videos
Contact Us
Disclaimer
Guest Book
Speed test
V.E.C. Calculator
IPv4 Subnet Calc
IPv6 Subnet Calc
Byte Converter
Converter
GMT/UTC Time
Bandwidth Calc
Allinone Calc
IANA Port Numbers
Country Call Codes
Pk Postal Codes
Surf Anonumously
Visitors Counter
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday119
mod_vvisit_counterYesterday203
mod_vvisit_counterThis week119
mod_vvisit_counterThis month4668
mod_vvisit_counterAll125344
 
 
 
 


Enable vi ksh command line editing PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Amanatullah khalil   
Sunday, 24 May 2009

Enable vi ksh command line editing

 

The Korn shell has the ability to utilize vi editor commands to edit commands in your history. If you are familiar with the vi editor, you will love this feature.


To enable vi editing, type the following command or place it in your .kshrc file:

set -o vi

Then you can use vi commands. Press escape to enter vi command mode then you have access to many vi commands. For example, k will move up through previous commands in the history, /tail will search for the most recent command containing the word tail and pressing n will find the next occurence of that search term.

Once you have found a command that you want to repeat, just press ENTER and it will be run again. You can edit the command with R to replace characters from your current position, x to delete the current character, i to insert characters before the current character, a append characters after the current character, and $ to move to the end of the command.

courtesy http://www.tech-recipes.com/rx/113/enable-vi-ksh-command-line-editing/

 
< Prev   Next >
 
 
 
csatpk Newsflash
Statistics
OS: Linux h
PHP: 5.2.17
MySQL: 5.1.63-community-log
Time: 20:53
Caching: Disabled
GZIP: Disabled
Members: 3
News: 368
Web Links: 5
Visitors: 265571
Popular