Make Arrow and delete keys work in KornShell command line

前端 未结 5 2089
猫巷女王i
猫巷女王i 2020-12-13 07:10

I am new to Unix and am using sun solaris (v10 I think). I have my shell set as KornShell (ksh).

I am wondering how to make the arrow keys and delete key work in th

5条回答
  •  猫巷女王i
    2020-12-13 07:51

    Don't fight it. Just have your administrator change your default shell to bash. bash is included with Solaris 10, is highly ksh compatible, and it supports the key mappings that you like. You can launch bash just by typing:

    $ bash
    

    You could exec bash out of your .profile if your administrator is not helpful. Here is what your administrator would do to change user1 to bash (as root):

    # passwd -e user1
    Old shell: /bin/ksh
    New shell: /usr/bin/bash        <- You type this, use whence bash to look up the path
    passwd: password information changed for user1
    

提交回复
热议问题