Up and Down keys for history?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Up and Down keys for history?
# 1  
Old 07-14-2011
Question Up and Down keys for history?

I am working in a shell, and I am used to using the up and down keys as a shortcut for the history of input commands, but it does not work for me on my new shell and computer.

is there a variable i have to set or something i have to configure to do make the up and down keys do something??

Thank you!Smilie
# 2  
Old 07-14-2011
Which OS you are using?
# 3  
Old 07-14-2011
Maybe. It's not the same everywhere. What's your system? What's your shell?

for the ksh shell, try set -o emacs
# 4  
Old 07-14-2011
ye sorry I did not specify, so I am using windows and c shell(i know not the best idea)..basically I am pretty sure there isn't a built in fuction but I've seen people use c shell and do the up and down key feature.

Perhap I can create an alias in my login file. something like:
alias <symbol for up key>=echo !!

..i know that ^ wont work but anyone have any ideas??
# 5  
Old 07-14-2011
Which version of c shell?
# 6  
Old 07-14-2011
Honestly I am not sure, and I don't know where to get this information sorry, but I can say I am using the latest version of MKS C Shell..

but does anyone know how I could perhaps write an alias for the up and down arrow keys if possibile??

Thanks you!
# 7  
Old 07-14-2011
Quote:
Originally Posted by vas28r13
Honestly I am not sure, and I don't know where to get this information sorry, but I can say I am using the latest version of MKS C Shell..
Thank you.

I don't think this proprietary, eccentric, Windows implementation of the eccentric C shell supports history in that manner. Its manual page doesn't mention anything of the sort. The MKS korn shell isn't very good either.

You alias commands, not individual keys.

---------- Post updated at 01:39 PM ---------- Previous update was at 01:33 PM ----------

You can find an ancient BASH shell for Windows here, and the unxutils project contains a rather decent zsh for windows. The zsh one in particular is rather nice.

Last edited by Corona688; 07-14-2011 at 04:46 PM..
This User Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 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. UNIX for Dummies Questions & Answers

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies

3. UNIX for Dummies Questions & Answers

The history command: See other users command history

Can anyone tell this: If two users are logged into the same server from different locations. Is there a way to see the history command of the other user? I tried the history command, but it is showing me only the commands I used. Thanks in advance for your help. Iamnew2solaris (1 Reply)
Discussion started by: iamnew2solaris
1 Replies

4. UNIX for Advanced & Expert Users

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (3 Replies)
Discussion started by: linuxadmin
3 Replies

5. UNIX for Dummies Questions & Answers

How to review the history and the commands that has been done in this history?

Hello every body, Kindly inform me How Do i find out the time I executed a command previously on UNIX Solaris?? To be more specific and more clear about what i want to know is that I want a command the enables me to know the history and which command i run at this history/time. FYI I used... (5 Replies)
Discussion started by: ahmedamer12
5 Replies

6. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

7. UNIX for Dummies Questions & Answers

Hot Keys

I am a new user, using UNIX in a DOS window. Is there a way to code a "Hot Key" for a string of commands? Thanks. (2 Replies)
Discussion started by: cwtlr
2 Replies

8. UNIX for Dummies Questions & Answers

arrow keys / special keys

how to use the arrow keys in shell scripting. is there any special synatax / command for this. i just want to use the arrow keys for navigation. replies appreciated raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies
Login or Register to Ask a Question