- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: alias problem
Operating System - HP-UX
1753367
Members
5052
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО04-08-2002 11:08 PM
тАО04-08-2002 11:08 PM
i use alias name=string in sh,but when exit sh,the alias i wrote does not work any more,how can i make the alias can be used when out the sh.
help ,help,help :-)
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2002 11:14 PM
тАО04-08-2002 11:14 PM
Re: alias problem
Try setting the alias in your startup file ($HOME/.profile)
It should then be valid for your entire login session.
It should then be valid for your entire login session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2002 11:15 PM
тАО04-08-2002 11:15 PM
Solution
Settings like "alias" are setting for the shell (not for the environment the shell runs in). So if you leave the shell your changes are gone.
If you want your settings to visible to all shells, you have to make them at login time (e.g. in .profile). Since all the shells you run, are spawned (are subshells) from your login shell.
Also see ENV for sh how to set shell-environment every time a new shell is started.
Hardy
If you want your settings to visible to all shells, you have to make them at login time (e.g. in .profile). Since all the shells you run, are spawned (are subshells) from your login shell.
Also see ENV for sh how to set shell-environment every time a new shell is started.
Hardy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2002 11:26 PM
тАО04-08-2002 11:26 PM
Re: alias problem
Try to put in your .profile the variable ENV like the following:
export ENV=file_name_you_want
After this create the file_name_you_want ( usually $HOME/.kshrc) inserting the alias definition.
Ciao Federico
export ENV=file_name_you_want
After this create the file_name_you_want ( usually $HOME/.kshrc) inserting the alias definition.
Ciao Federico
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP