LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 06-24-2008, 10:58 AM   #1
ljmace1953
Member
 
Registered: Jan 2006
Distribution: suse
Posts: 38

Rep: Reputation: 0
Question on settng up a retreive key


We are running aix 5.2. If I enter a command and want to retreive it because of a keying error(not mine of course..LOL) I am unable to do so.
I've looked around but can't find the procedure to set this up
Any help is greatly appreciated
thanks
Mace
 
Old 06-25-2008, 08:24 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Assuming that your default shell is ksh:
# this only needs to be done once to put ksh in vi edit mode, most put this in their .profile or similar.

$ set -o vi

type <esc> k to bring up the last run command.
$ <esc> k

You can cycle through the previous commands with k and j key, backwards and forward respectively.

Move your cursor over the selected line with h and l, just like in vi and some other vi edit commands like x, i, $ all work.

There are a ton of sites that cover this.
 
Old 06-25-2008, 01:32 PM   #3
ljmace1953
Member
 
Registered: Jan 2006
Distribution: suse
Posts: 38

Original Poster
Rep: Reputation: 0
thank you crabboy
Mace
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System not booting, how can I retreive my data linuxlainen Linux - Newbie 16 10-28-2006 05:49 AM
Settng up Canon Multifunction USB printer timsch75 Linux - Hardware 3 06-03-2006 11:54 AM
What is good video resolution settng for card/monitor? sirius57 SUSE / openSUSE 1 02-21-2006 07:15 AM
pam_krb5.so fails to retreive ticket nilecirb Linux - Networking 0 07-29-2005 11:06 PM
I rebooted server now I cant retreive emails via outlook express lexington Linux - Newbie 5 05-01-2004 11:39 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration