History feature in Unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers History feature in Unix
# 1  
Old 02-09-2009
History feature in Unix

Hi,

I'm working on two flavours of unix namely HP-UX and sun solaris.
In HP-UX, for executing the previous commands, i use the arrow keys. But on sun solaris this is not working.
Can anyone explain how to use history feature effectively in sun solaris os?

Thanks
# 2  
Old 02-09-2009
It varies on what shell you are using. I always use bash and that feature is on by default.
# 3  
Old 02-09-2009
Thanks for the information.

am using korn shell in Sun solaris and bash shell in Hp-UX.

How to use history feature in Sun solaris then? Appreciate your help.
# 4  
Old 02-09-2009
if you type:
Code:
set -o vi

you should be able to go backforth with <ESC>+k or <Es> +l

I that works, just add in your .profile
export EDITOR=/usr/bin/vi


All the best
# 5  
Old 02-10-2009
Thanks a ton. wonderful.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

The Great History of UNIX (1969-1999) | 30 Years of UNIX History | YouTube Video

I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX. The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)
Discussion started by: Neo
8 Replies

2. Shell Programming and Scripting

History file in UNIX

commands to view the history file in unix. I am not sure whether it is bash_history.sh (1 Reply)
Discussion started by: ramkumar15
1 Replies

3. UNIX and Linux Applications

Unix History

Hi everybody Im Megadrink!!! This is my first thred. Ive recently been introduced to Unix and i was interested in Unix's History. Can anyone give me a breif History On Unix. Just when it was invented/released. Maybe someother cool things about it. Thx for the information in advance!! :D (2 Replies)
Discussion started by: Megadrink
2 Replies

4. Solaris

unix command history

is there any way to determine the last command entered on a unix machine??? Thanx (3 Replies)
Discussion started by: mm00123
3 Replies

5. Shell Programming and Scripting

Creating a command history feature in a simple UNIX shell using C

I'm trying to write a history feature to a very simple UNIX shell that will list the last 10 commands used when control-c is pressed. A user can then run a previous command by typing r x, where x is the first letter of the command. I'm having quite a bit of trouble figuring out what I need to do, I... (2 Replies)
Discussion started by: -=Cn=-
2 Replies

6. UNIX for Dummies Questions & Answers

Unix History Question: Why are filenames/dirnames case sentsitive in Unix?

I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard
3 Replies

7. News, Links, Events and Announcements

Similar Threads - a new vB3 feature for UNIX.COM

Note the new feature on UNIX.COM, many thread at the bottom of the page have a new feature: Similiar Threads Here is an example on one of Perderabo's posts: https://www.unix.com/showthread.php?t=16337 Kudos to the vB folks for this built-in feature!! Neo (0 Replies)
Discussion started by: Neo
0 Replies

8. UNIX for Dummies Questions & Answers

The history of UNIX and the ideas behind it

Hi. I am new here, and this is my first post at the UNIX.com forums. I have read the book Fire in the Valley: The Making of the Personal Computer, and I noticed that neither UNIX nor Linux was mentioned once in the book. Why is this? What was UNIX's place in the early days of personal computers? ... (6 Replies)
Discussion started by: elendil
6 Replies

9. News, Links, Events and Announcements

Unix History Link

Link describe the Step by step formation of Unix http://perso.wanadoo.fr/levenez/unix/ Also: - History - Author of First Unix C Language - Unix Family research Tree - BSD and Sun History chart - Technical Comparison between Unix Diffrences (4 Replies)
Discussion started by: killerserv
4 Replies
Login or Register to Ask a Question