Talk Root - PC Hardware, Software and Web Development forums

Go Back   Talk Root - PC Hardware, Software and Web Development forums > Operating Systems > UNIX Discussion

UNIX Discussion Discuss the unix enviroment server and client side


Welcome to the Talk Root - PC Hardware, Software and Web Development forums. Are you a programmer, web developer, IT guy or a computer guru? We invite you to join our forums and participate in friendly discussion. It doesn't matter your skill level, we are here to help everyone.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Sponsored Links
Reply
 
LinkBack Thread Tools Rate Thread
Old 05-17-2005, 03:54 PM   #1
dthacker@omnihotels.com
 
Posts: n/a
Up arrow does not work for history on bash 3.0, aix 5.3

I've got a fresh compile of bash 3.0 on aix 5.3. The up arrow is not
working for history, which I've been told is the default behavior. I'm
also not able to set -o vi to do command line editing. I've looked for
a global config file, but no joy. Does someone have a pointer to a
working config for 3.0?

TIA
DT

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 09-16-2005, 07:07 PM   #2
Ravager
Registered User
 
Join Date: Sep 2005
Posts: 3
ksh will allow the seting of vi
so if you use ksh -o vi or have your shell as ksh this will work not in bash

bash shortcuts
Basics:

Use up and down arrows to recall previous command
Use right and left arrows to make changes in current command line
After one or more letters of a command or filename, hit the Tab key for command or filename complete; if this is non-unique, hit the Tab key a second time for possible choices.
!gcc will repeat the previous command starting with 'gcc'
'gvim !$' will apply the command 'gvim' to the last argument on the previous command line (in Unix, '$' is a symbol for last row, column or argument depending on the context)
Other useful methods for editing command line (includes the command line for interactive command based programs such as Splus [in emacs edit mode], R, maple, octave, mysql etc]) Most of these are the same as editing in emacs, so you can check the emacs on-line help for other quick-edit possibilities. The editing is based on the ctrl-key in combination with another key (usually a meaningful letter for a-z) or the esc-key followed by another key (from a-z)


Ctrl keys
ctrl-a: beginning of line
ctrl-e: end of line
ctrl-k: delete (kill) remainder of line
ctrl-u: delete entire command line
ctrl-w: delete previous word
ctrl-t: transpose 2 characters
ctrl-y: yank or recover previous deletion
ctrl-d: delete character at cursor; note distinction from the backspace key or ctrl-h: delete character before cursor
ctrl-f: forward one character (needed in 'emacs/Splus -e' because arrows keys don't work)
ctrl-b: backward one character (same comment as above)
Esc combinations
esc-d: delete word
esc-f: forward a word
esc-b: backward a word
esc-t: transpose two adjacent words
Note that some of the Ctrl-key combinations like ctrl-a, ctrl-e, ctrl-k, ctrl-u also may work in entry fields in X applications (an example is the web Location entry box in the netscape browser.
Ravager is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 01:08 AM.


Sponsors
Banner Best Deals 24x7 @ Geeks.com!
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0 RC8
vB Ad Management by =RedTyger=
© 2006 TalkRoot.com -