- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX 11.00 - cshell - history key
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 08:44 AM
тАО04-26-2007 08:44 AM
HP-UX 11.00 - cshell - history key
Please, how I configure arrows (up/down) for show the commands in history?
Thanks.
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 08:48 AM
тАО04-26-2007 08:48 AM
Re: HP-UX 11.00 - cshell - history key
Thats the way linux does it.
Been a while since I used c shell but I don't think it even keeps a keyboard history.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 09:01 AM
тАО04-26-2007 09:01 AM
Re: HP-UX 11.00 - cshell - history key
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2007 01:01 AM
тАО04-27-2007 01:01 AM
Re: HP-UX 11.00 - cshell - history key
@SEP - of course does csh keeps it's history :-)
From 'man csh':
History Substitutions
History substitutions enable you to repeat commands, use words from previous commands as portions of new commands, repeat arguments of a previous command in the current command, and fix spelling or typing mistakes in an earlier command.
History substitutions begin with an exclamation point (!).
The number of previous commands saved is controlled by the history variable. The previous command is always saved, regardless of its value. Commands are numbered sequentially from 1.
You can refer to previous events by event number (such as !10 for event 10), relative event location (such as !-2 for the second previous event), full or partial command name (such as !d for the last event using a command with initial character d), and string expression (such as !?mic? referring to an event containing the characters mic).
These forms, without further modification, simply reintroduce the words of the specified events, each separated by a single blank. As a special case, !! is a re-do; it refers to the previous command.
'history' (or it's alias) show you the stored history, and with '!
As a special, you can use '^' to change the last command, so if your lsat command was 'ls', with ^s^l you'll get 'll' as the next command - of course you'll use that for longer commands.
But I've not yet seen, that csh works with arrows.
Then you should use 'bash' for example.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2007 07:14 PM
тАО04-27-2007 07:14 PM
Re: HP-UX 11.00 - cshell - history key
Right.
>Volkmar: But I've not yet seen, that csh works with arrows.
That's why I call it the scummy csh. Unless it can do vi (or emacs) editing, editing by sed like commands is next to useless.
- Tags:
- scummy C shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2007 10:45 PM
тАО04-27-2007 10:45 PM
Re: HP-UX 11.00 - cshell - history key
you have to use tcsh for this - the Tenex C-Shell is a superset of the old csh.
tcsh is available at the HP porting center.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2007 11:19 PM
тАО04-27-2007 11:19 PM
Re: HP-UX 11.00 - cshell - history key
You can install bash.
or
See the below thread
It talks about an alias option.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3617
Regards,
Rasheed Tamton.
- Tags:
- bash