UNIX arrow up history


I am fairly new to UNIX.  How do I change the command line so that I can use the up arrow to go through the command history?

Who is Participating?
jeremycrussellConnect With a Mentor Commented:
Ok, then you have bash available.

So, you can change your shell to use /bin/bash (check and make sure that the path is correct)

usermod -s /bin/bash <username>

And then you'll be running bash every time you log in.

In the mean time, when you start bash, you can start using its history.

Control the number of items stored in its history using the HISTORY environment variable.
That would be a function of the shell you are using.

What operating system?

You can start by trying to run bash

$ bash

Open in new window

and if you can get bash to run, you can probably starting using the arrows for command line history.
I normally use Escape+K to go up and Escape+J to go down...

I believe this depends on having an environment variable EDITOR=vi
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

IRHuskerAuthor Commented:
Thank you!  

$ Bash
IRHuskerAuthor Commented:
FYI - I am using Solaris UNIX.
i run tch

then just use the up/down keys
IRHuskerAuthor Commented:
Thanks Bro!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.