- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: esc-k and similar 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
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
тАО08-17-2005 06:09 AM
тАО08-17-2005 06:09 AM
-Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:17 AM
тАО08-17-2005 06:17 AM
Re: esc-k and similar commands
HISTFILE=~/.sh_history
HISTSIZE=1000
This wuold store your commands in .sh_history file in your home dir and will store 1000 commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:19 AM
тАО08-17-2005 06:19 AM
Re: esc-k and similar commands
Try something like this:
HISTFILE=$HOME/.sh_$LOGNAME
HISTSIZE=10000
export HISTFILE; export HISTSIZE
also don't forget to set your editor in the .profile:
# Set up the shell variables:
EDITOR=vi
export EDITOR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:20 AM
тАО08-17-2005 06:20 AM
Re: esc-k and similar commands
beit ksh or sh.
You need to setup your environment.
when reading the manpage pay attention to
HISTFILE
and
EDITOR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 01:46 PM
тАО08-17-2005 01:46 PM
Re: esc-k and similar commands
touch $HOME/.sh_history
The HISTSIZE variable is optional but allows you to limit/expand the maximum size of the history file. Manipulating the history file is done with fc commands but most people never use fc directly. Instead, aliases are created such as:
history='fc -l'
r='fc -e -'
I don't like typing much so I alias
h='fc -l'
and also have an hgrep alias:
hgrep='fc -l | grep -i'
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 02:47 AM
тАО08-18-2005 02:47 AM
Re: esc-k and similar commands
an example from my root .profile as below;
HISTSIZE=1000; export HISTSIZE
HISTFILE=~/.sh_history
export HISTFILE
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 01:19 PM
тАО08-18-2005 01:19 PM