- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Diffference between .profile and .login file
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
тАО09-02-2004 03:04 PM
тАО09-02-2004 03:04 PM
Diffference between .profile and .login file
Do anyone know that what is the diffference between .profile and .login file?
Thanks
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2004 03:15 PM
тАО09-02-2004 03:15 PM
Re: Diffference between .profile and .login file
Posix and Key shells (sh/ksh) use .profile. .login is used by csh/tcsh.
The syntax of these files vary based on the type of the shell they are used for.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2004 03:15 PM
тАО09-02-2004 03:15 PM
Re: Diffference between .profile and .login file
.login is for the cshell.
These files have the user's environmental settings that has to be initialized for the user.
When you user with default bourne/korn shell logs in first /etc/profile and then $HOME/.profile.
When the user with csh shells logs in /etc/cshrc and then $HOME/.login files are read for setting the env. for the user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2004 03:40 PM
тАО09-02-2004 03:40 PM
Re: Diffference between .profile and .login file
There was fat finger in my reply. It should read Posix, Korn and key shells (sh/ksh/keysh) use .profile.
-Sri
PS: 0 points for this please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2004 03:53 PM
тАО09-02-2004 03:53 PM
Re: Diffference between .profile and .login file
.profile --> It is executed to setup user environment on ksh / rksh / sh / rsh shells.
.login --> It is executed to setup the user login environment on csh / tcsh shells. A csh script sourced (executed) by login shell, after .cshrc at login.
How login starting are specified over here as,
http://www.interex.org/tech/9000/Tech/sun_hpux_interop/chap13_log.html
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2004 06:07 PM
тАО09-02-2004 06:07 PM
Re: Diffference between .profile and .login file
.login is wehn the shell is csh
regards
SK