- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- C shell features
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
Forums
Discussions
Discussions
Discussions
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
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
07-04-2004 03:34 PM
07-04-2004 03:34 PM
I need a small help.
In Linux if we use bash / C SHELL, we can get previous commands using arrow (up / down) keys.
But in HP unix it is not working for C Shell.
How can enable this feature. ????
Thanks in advance to each and everyone....
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2004 04:28 PM
07-04-2004 04:28 PM
Re: C shell features
This is called as command line editing feature.
This is not supported by c shell but by K shell in hp-ux.
To achieve this feature in HP-UX we have to use.
#ksh -o vi
After this you can view all the previous commands and run them.You have to move forth and back in this by using the same keys as we use in vi.
E.g.
esc k will show you the earlier command you can edit this command by using normail h,j,k,l etc.., keys as we use it in vi.
To make this permanent put this entry in
.profile or /etc/profile files.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2004 04:32 PM
07-04-2004 04:32 PM
Re: C shell features
To get the previous commands,we have to enable the HISTORY. This history of commands started from C shell.
To enable the history ,use this.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=624933
We cannot use the up/down key on HP-UX. For that we have to use Esc k or
Esc\
key n or key N to UP and DOWN
Check this one.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=616828
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2004 04:37 PM
07-04-2004 04:37 PM
Solutionit can be set from the C shell prompt.
% set history=5
or you can set the history environment variable in the .cshrc file as
history=5
as far as the C shell is concerned, the features available in linux is available in HPUX also.
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2004 04:46 PM
07-04-2004 04:46 PM
Re: C shell features
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 07:24 PM
07-05-2004 07:24 PM
Re: C shell features
I am sorry to interfere. I am using HPUX 11i. I have tried the same command. It did not help me. I have added following lines in .cshrc file.
history=10
When I give csh, I got the following error.
root# # csh
history=10: Command not found.
root#