- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: retyped commands
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
08-24-2000 07:26 AM
08-24-2000 07:26 AM
retyped commands
2)is there anyway i can setup to memorize or remember past commands or previous 10 commamnds that i typed already
3)so, i can use 'up arrow key' to bring past commands like dos or router
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 07:30 AM
08-24-2000 07:30 AM
Re: retyped commands
Yes, you can remember the last commands you have typed; Here is one way, in your .profile set the following variables;
HISTFILE=$HOME/.sh_history
HISTSIZE=
set -o vi
Next time you login your commands will be remembered but using this method you will need to press ESC then K to see your last command, and keep pressing K to scroll back through your commands, and J to go forward etc. And you can search for a command by press ESC then / then
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 07:34 AM
08-24-2000 07:34 AM
Re: retyped commands
If it's not there than do a touch .sh_history to first create it.
Now vi your .profile
If you have a line that says VISUAL ($when....) than rem this out.
Add the following lines:
VISUAL=vi;export VISUAL
HISTFILE=/.sh_history;export HISTFILE (this reflects for root .profile)
HISTSIZE=100;export HISTSIZE
This should give you the ability to do esc k and recall the last 100 commands keyed.
I'm not the best typist....hope this helps,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 01:00 PM
09-11-2000 01:00 PM
Re: retyped commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 01:12 PM
09-11-2000 01:12 PM
Re: retyped commands
To get around this, set HISTFILE=
where
For full details of command recall, see man sh-posix. Most people prefer vi but for some reason, I always use 'emacs' mode (set -o emacs) even though I have never used the emacs editor. You can even use the arrows keys with emacs mode provided you remap your keyboard so that:-
uparrow =
downarrow =
leftarrow =
rightarrow =