Command line editing and text editor on AIX

aixcommand lineeditorsksh

Recently my company is moving an application system from mainframe z/OS to AIX. I have some experience on Ubuntu, but am completely new to AIX 6.1.
Just wondering a few question:

  1. We use putty to connect to the AIX servers, but putty is very difficult to operate. You cannot use up arrow to recall the command in history. Is there any better terminal that is more user friendly in AIX?
  2. AIX is using ksh, instead of Bash. Is there any login shell with a special name that every time you login it can execute automatically, just like the .bashrc in ubuntu?
  3. There's no gedit nor nano nor vim on my AIX, only vi. Is there any text editor that I can download/use without root permission?

Best Answer

The default login shell for AIX is not bash - it is ksh/posix. The reason why the "up" arrow isn't working is because KSH is set to "vi" mode (bash can do this too). You want "emacs" mode:

set -o emacs

The .bashrc equivalent is .profile. You can put the above in there to change it permanently. AIX actually gives you two versions of KSH - ksh88 (default) and ksh93. The latter supports .kshrc as well

You can also install bash (and vim, nano etc) on AIX using an RPM available from one of the publicly available repositories.

Related Question