- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command history
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
07-24-2003 11:49 PM
07-24-2003 11:49 PM
as a "normal" user I am able to use "ctrl k" to repeat last commands.
Where do I have to edit what so I can use "ctrl k" also as "root" on a terminal session or on a "cde-session"
Many Thanks
Juerg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:01 AM
07-25-2003 12:01 AM
Re: Command history
Root: Default shell is posix "sh" ... in root's home directory edit the .profile and set and export the shell to "ksh"
CDE: edit $HOME/.dtprofile
-Regards,
Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:31 AM
07-25-2003 12:31 AM
Re: Command history
export HISTFILE=/.sh_history
export HISTSIZE=100
then
# touch /.sh_history
relogin system.
It should works now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 01:11 AM
07-25-2003 01:11 AM
Re: Command history
I have to add:
login as root on a terminal session "esc k" works fine (I have to correct: in my first statement I should have written "esc k" instead of "crtl k". Sory)
Doing "su" to become root on a normal terminal session "esc k" does not work. I do not get any echo.
Typing "esc k" as root on cde I get the message: "/sbin/sh: ^[k: not found"
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 01:19 AM
07-25-2003 01:19 AM
Re: Command history
DTSOURCEPROFILE=true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 02:17 AM
07-25-2003 02:17 AM
Re: Command history
When you su to root, no profile information is parsed unless you use the "su -" syntax, so you will have to do "set -o vi" manually. Either you need to remember to add tu "-" to your su command or remember to "set -o vi".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 02:33 AM
07-25-2003 02:33 AM
Re: Command history
it works
Many thanks and have a nice weekend
Juerg