UNIX arrow up history

Hello,

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?

thanks!
IRHuskerAsked:
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.
0
 
jeremycrussellCommented:
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.
0
 
kevb258Commented:
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
0
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
bash-3.00
0
 
IRHuskerAuthor Commented:
FYI - I am using Solaris UNIX.
0
 
joeycastilloCommented:
i run tch
#tcsh

then just use the up/down keys
0
 
IRHuskerAuthor Commented:
Thanks Bro!
0
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.