- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: RE : Repeat the last command type
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
тАО10-15-2005 06:03 AM
тАО10-15-2005 06:03 AM
i've installe HP-UX on Hp integrity rx2600.
How to repeat the last command typed in HP-Ux?
Please advise , thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2005 06:16 AM
тАО10-15-2005 06:16 AM
Re: RE : Repeat the last command type
Enable the shell history by adding these lines to your profile ( or /etc/profile if you want it for all users ):
HISTFILE=$HOME/.sh_history
HISTSIZE=1000
export HISTFILE HISTSIZE
Then log out and log on again. Press "Esc" key, and then "k" key to "navigate" through your previous commands.
Regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2005 06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2005 08:19 AM
тАО10-15-2005 08:19 AM
Re: RE : Repeat the last command type
so every time you login history is set
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2005 07:55 PM
тАО10-16-2005 07:55 PM
Re: RE : Repeat the last command type
121 cd
122 ll
(ten lines in all).
r 121 will repeat command number 121 (cd).
If you want more than 10 lines, type history -n, where n is the number of commands you want to see: e.g. history -20 will produce 20 lines.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2005 08:02 PM
тАО10-16-2005 08:02 PM
Re: RE : Repeat the last command type
set -o vi
export HISTFILE=$HOME/.sh_history
export HISTSIZE=2500
and save it.
For future login, it will give you history of commands.
To get prev. command then,
a) Esc k
b) Esc /
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2005 08:45 PM
тАО10-16-2005 08:45 PM
Re: RE : Repeat the last command type
!!
repeats the last command you typed.
Regards,
Bob