- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Getting previous commands using up arrow.
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
тАО07-08-2005 12:07 AM
тАО07-08-2005 12:07 AM
Getting previous commands using up arrow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2005 03:36 PM
тАО07-09-2005 03:36 PM
Re: Getting previous commands using up arrow.
yes, Linux, is OK, with the the up-arrow,but historical shell is the following:
on hp-ux:
enter 'ksh' commad-line, for example
$ ksh
set -o vi
where
type the '-' command is like the up-arrow in bash.
try this:
lx
s
what happens?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2005 05:37 PM
тАО07-09-2005 05:37 PM
Re: Getting previous commands using up arrow.
I can not help you much as I am a vi monger and prefer to use esc-k/j/i/l for my command line editing but you can look it up under EMACS style command line editing. I am sure googling some combination of the terms I have given above, willlead you to the correct answer but, you can start your adventure by running this command
set -o emacs
if emacs is properly configured, it might be the solution you are looking for.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2005 07:07 PM
тАО07-10-2005 07:07 PM
Re: Getting previous commands using up arrow.
Check for this environment settings
echo $HISTFILE
answer may be any file name default is .bash_history
cat the file name and see wheather u r able to see any previos commands. If the file is not thr touch that file.
echo $HISTFILESIZE r $HISTSIZE
if the above file is there and there is no entires in it that may a problem with history file size so check this entry it can any thing away from 0.
Jayachandran.G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2005 08:11 PM
тАО07-10-2005 08:11 PM
Re: Getting previous commands using up arrow.
set -o emacs
export HISTSIZE=1000
export $HISTFILE=$HOME/.sh_history
put this in /etc/profile to get effect at every login.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2005 06:12 AM
тАО09-23-2005 06:12 AM
Re: Getting previous commands using up arrow.
We're using HP-UX 11.23 on Itanium and the default Posix shell, so I'm not sure if this will work for you.
I defined VISUAL to be emacs and then set up the aliases in the user's .profile:
alias -x __A=`echo "\0020"` #Up arrow ^P
alias -x __B=`echo "\0016"` #Down arrow ^N
alias -x __C=`echo "\0006"` #Right arrow ^F
alias -x __D=`echo "\0002"` #Left arrows ^B
There are two (2) underscores in each alias name.
We use KEAterm which emulates a VT420 and CDE's terminal program which is a dtterm. It seems to work for both.
Idea came from this thread: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3617
Terry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2005 06:24 AM
тАО09-23-2005 06:24 AM
Re: Getting previous commands using up arrow.
i usually use o'reilly's book on the bash shell for reference, btw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2005 07:02 AM
тАО09-23-2005 07:02 AM
Re: Getting previous commands using up arrow.
You can get bash from gatekeep.cs.utah.edu in depot format or is source form.
Set your login shell to bash and you will have that up arrow functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2005 07:11 AM
тАО09-23-2005 07:11 AM
Re: Getting previous commands using up arrow.
Rgds...Geoff