- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: add settings when log in
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
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
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
тАО11-10-2003 02:26 PM
тАО11-10-2003 02:26 PM
thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 02:38 PM
тАО11-10-2003 02:38 PM
Re: add settings when log in
Coz i know there is no shell called as bash in HPUX, its in Linux
But well if you are trying so then just change the shell to bash and then execute
set -o vi
This will bring the history of the commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 02:42 PM
тАО11-10-2003 02:42 PM
Re: add settings when log in
Add the following lines to .profile.
export EDITOR=vi
export HISTFILE=$HOME/.sh_history.
You should also be able to use set -o vi to turn on command history.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 03:27 PM
тАО11-10-2003 03:27 PM
Re: add settings when log in
it is runlevel 5, so Xfree86 window will be used. .profile won't be working, so any settings you add into the file won't take effect.
Why, and which file(s) I should be adding into?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 05:05 PM
тАО11-10-2003 05:05 PM
SolutionJust make sure you start up bash windows with the "-ls" flag. For example, if you use "xterm" for your window, run "xterm -ls" and set your "bash -o vi" in ".profile.
The "-ls" causes xterm/konsole/gterm etc to start up using a "log in" shell. This will read .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 09:21 PM
тАО11-10-2003 09:21 PM
Re: add settings when log in
You could also add the commands to the .bashrc file in the homedirectory of the user. That file will be runned for every instance of bash...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 02:24 AM
тАО11-11-2003 02:24 AM
Re: add settings when log in
where is the best link I can surf to find out all these definitions, and configurations myself. LINUX.
Sounds very confusing.
Points will be followed soon.
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 02:27 AM
тАО11-11-2003 02:27 AM
Re: add settings when log in
http://www.xfree86.org/