Solved

AIX:  HOw do I get rid of del chars and other

Posted on 2015-02-02
2
234 Views
Last Modified: 2015-02-03
When I use the del key during a command I get the following:


# ls
ksh: this^?^?^?^?ls:  not found.
#

Open in new window


Nor can I up arrow to my previous command like I can do in Linux.

How can I configure AIX to perform more like Lunix?

Thanks
0
Comment
Question by:Anthony Lucia
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
Comment Utility
1) DEL key

Which terminal software do you use? If it's PuTTY take care to set the backspace key to "Control-H" in the "Terminal" section of PuTTY's session setup.

If this doesn't help try adding

stty erase \^h

to your .profile (That's "backslash caret h")

2) filename completion/commandline editing/history retrieval:

The "emacs" option enables  autocompletion under AIX (ksh) by hitting <ESC> twice, and
you can define aliases to enable history navigation using the arrow keys.

Add the following to your ".profile" (for individual use) or to "/etc/profile" (for system wide use):

set -o emacs
alias __A=`echo "\020"`   # up arrow = previous command
alias __B=`echo "\016"`   # down arrow = next command
alias __C=`echo "\006"`   # right arrow = cusror right
alias __D=`echo "\002"`   # left arrow= cursor left

If you add it to /etc/profile take care to remove "set -o vi" from there. In any case remove "set -o vi" from any private .profile which is going to use "emacs".

As said above, hit the <ESC> key twice for autocompletion.
0
 
LVL 28

Assisted Solution

by:Bill Bach
Bill Bach earned 250 total points
Comment Utility
As for your questions, try the history command to be able to re-run your recent commands.  A quick search will turn up lots of suggestions on this, but here's a starting point:
    http://unixhelp.ed.ac.uk/shell/ksh_hist.html

Also, make sure that you are using the correct terminal emulator.  If your terminal program and the AIX box don't agree on what type of terminal you are using, then things can get confusing.  

I do believe that your problem is more fundamental than this.  You are currently using the Korn Shell (indicated by the ksh message).  You may with to also consider the Bash Shell, which is considered to be newer and more feature-rich, and (usually) a bit easier to use.  No matter which shell you choose, spending some time with the docs is probably a good idea.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now