- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recalling command
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
01-07-2003 07:14 PM
01-07-2003 07:14 PM
-k scrolls backward through the command
history
-j scrolls forward through the command history
can not show the command in command line?
But in normal user terminal, this function
can work properly? Thanks.
note: EDITOR=vi
export EDITOR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:18 PM
01-07-2003 07:18 PM
Re: Recalling command
Can you just explain your Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:21 PM
01-07-2003 07:21 PM
Re: Recalling command
export EDITOR=vi
export HISTFILE=$HOME/.sh_history
Then in .profile this entry should exist..
export ENV=$HOME/.kshrc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:21 PM
01-07-2003 07:21 PM
Re: Recalling command
k button to scrolls backward through the command history. But while login in user1, this
can be done. Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:32 PM
01-07-2003 07:32 PM
Re: Recalling command
ksh -o vi
note: ksh should be in path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:35 PM
01-07-2003 07:35 PM
Re: Recalling command
why login in user1... don't type this command.
Is this only apply in root user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:39 PM
01-07-2003 07:39 PM
Re: Recalling command
check it out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:42 PM
01-07-2003 07:42 PM
Re: Recalling command
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 11:13 PM
01-07-2003 11:13 PM
Re: Recalling command
S.K. Chan has the correct answer. This is described in the sh-posix(1) manpage:
------------------------
If the user is a superuser and no HISTFILE is given, then no history file is used.
------------------------
This is done for security reasons, I suppose. Setting the HISTFILE envvar in the .profile for root should indeed do the trick. Remember that the POSIX shell is the standard and should be used instead of ksh.
Hope this helps,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 12:12 AM
01-08-2003 12:12 AM
Re: Recalling command
If it show /sbin/sh, then is is a POSIX Shell
If it show /usr/bin/ksh, then it is a Korn shell, so that the user can check the previous command by pressing ESC and then the letter k will go to that previous command.
Change the user shell to /usr/bin/ksh, if it exist as /sbin/sh.then it will easy to check the previous command.