- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- csh and viewing previous command
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
09-29-2003 08:50 PM
09-29-2003 08:50 PM
csh and viewing previous command
Is is possible to enable viewing previous command like in "ksh" pressing ESC-k ?
I have EDITOR=vi and onyl the above feature deosn't work.
regards,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 09:00 PM
09-29-2003 09:00 PM
Re: csh and viewing previous command
To use C shell (HP-UX) you need to do the following:
1. put the followings in you .cshrc file
# set the size of the command history
set history=50
# Saving command history between logins
set savehist=25
Use !! to execute previous command.
More info;
http://beta.experts-exchange.com/Operating_Systems/Unix/Q_20651807.html
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 09:38 PM
09-29-2003 09:38 PM
Re: csh and viewing previous command
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068403075
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 09:51 PM
09-29-2003 09:51 PM
Re: csh and viewing previous command
I don't like to use !! for previous command execution. I am looking for possibility of usage ESC-k like it is in KSH.
thx,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 09:59 PM
09-29-2003 09:59 PM
Re: csh and viewing previous command
Each shell has a different way of handling things as how it was customized/built.
The Esc-k usage for history is available for ksh.
For csh,you have to use the history variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 10:08 PM
09-29-2003 10:08 PM
Re: csh and viewing previous command
!! for previous command
!n last n command