Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

simple question of back history

admin1979
Super Advisor

simple question of back history


Hello,

How do you turn on the feature with which we can scroll through the previous commands by using UP ARROW Key?

Thanx,
admin
7 REPLIES
Steven Schweda
Honored Contributor

Re: simple question of back history

Which is your shell? (Does it offer that
feature?)

man
admin1979
Super Advisor

Re: simple question of back history

Its a KSH shell. I am going through the man ksh now.
Steven Schweda
Honored Contributor

Re: simple question of back history

I don't know about ksh. GNU "bash" can do
it.

http://www.gnu.org/software/bash/
cnb
Honored Contributor

Re: simple question of back history


For ksh I use:

# set -o emacs

Works just like VMS :-)

Rgds,
admin1979
Super Advisor

Re: simple question of back history

That command did not work.
cnb
Honored Contributor

Re: simple question of back history

>"That command did not work."

Not very descriptive.

Did you get an error?


Maybe you need to change your .profile?

Ours looks like this:

# @(#)$RCSfile: .profile.sh,v $ $Revision: 1.1.4.3 $ (DEC) $Date: 1999/03/30 20:14:46 $

if [ ! "$DT" ]; then
stty dec crt new
fi
PATH=/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local
export PATH
set -o emacs
PS1=`hostname`':$PWD> '
export PS1


if [ ! -f /usr/var/checklist.setup -a ! -f /usr/var/setup.notice ]; then
if [ -x /usr/sbin/setup -a "$DISPLAY" = "" ]; then
if [ "$TERM" = "" ]; then
TERM=vt100
export TERM
echo "** "
echo "** Your terminal type is unknown and is being set to a default of \"VT100\""
echo "** "
echo "\n\nPress RETURN to start system setup or Control-C to exit to shell."
read USER_INPUT
fi
date > /usr/var/setup.notice
/usr/sbin/setup
fi
fi
Server4:/>

We have several V5.1B-4 systems here and '# set -o emacs' works just fine for us.


Rgds,


Highlighted
admin1979
Super Advisor

Re: simple question of back history

As mentioned above.