LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2010, 04:54 AM   #1
atulkatrajkar
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
Can anybody tell me what is the differenc between .profile and .env


Hi All,

How can i edit the environment file?

Regards,
ATul.
 
Old 10-12-2010, 05:37 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Quote:
env - run a program in a modified environment
man env will give you more information.

type env on command prompt and you will get the list of environmental variables defined.

Quote:
.bash_profile ; /etc/profile and .bashrc
# .profile is for things that are not specifically related to Bash, like environment variables PATH and friends, and should be available anytime. For example, .profile should also be loaded when starting a graphical desktop session.
# .bashrc is for the configuring the interactive Bash usage, like Bash aliases, setting your favorite editor, setting the Bash prompt, etc.
# .bash_profile is for making sure that both the things in .profile and .bashrc are loaded for login shells.

Last edited by prayag_pjs; 10-12-2010 at 07:06 AM.
 
1 members found this post helpful.
Old 10-12-2010, 06:33 AM   #3
atulkatrajkar
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Prayag ,

Thanks a lot !!!!!!

regards
Atulraj.
 
Old 10-12-2010, 07:05 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Mark the thread as solved if your doubts are clear.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Differenc deepaksinghnegi Linux - Newbie 2 10-23-2009 11:37 AM
customising .profile with env variables. dxangel Linux - Server 3 07-24-2009 04:10 AM
RPM dependency failure: /usr/bin/env instead of /bin/env anoosh3000 Linux - Software 1 04-10-2009 05:34 AM
The differenc between CLFS,BLFS ALFS and LFS sumargin Linux From Scratch 5 09-29-2006 04:46 AM
profile.env twk Linux - Distributions 1 10-20-2004 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration