ksh(3) survival guide for bash(1) users

So you like bash, just like me. There are times though where you'd need to work on a machine where there is no bash, but ksh(3). Here is a list of commands and keys to help you:

Go back in history

Hit escape a few times, now hit "k" and "j" to move back and forward into the history.
Edit the command with the letters "h" and "l".

Complete commands

Type a part of your command, hit escape a few times, now hit "\" to complete the command.
You can't display what your options are, (in bash just tab a few times)

Get a decent prompt

Either run this command once, or add it to your ~/.profile:

export PS1="${USER}@$(hostname) ${PWD##*/} $ "

One major problem; the PWD variable does not change when changing directories!

About Consultancy Articles Contact




References Red Hat Certified Architect By Robert de Bock Robert de Bock
Curriculum Vitae By Fred Clausen +31 6 14 39 58 72
By Nelson Manning [email protected]