LinuxQuestions.org
Review your favorite Linux distribution.
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 07-20-2013, 03:48 AM   #1
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Rep: Reputation: Disabled
.profileand .lobin


hi
i am roms user. in this model manual write that
Quote:
If you are always going to be using the same compiler on each system, you can edit your .profile or .login files to globally set them.
my system shell is bash and i use fedora 16.
would you please tell me that where i should edit (where is .profile and .login)
thanks
 
Old 07-20-2013, 04:15 AM   #2
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
Quote:
Originally Posted by fereshteh View Post
hi
i am roms user. in this model manual write that

my system shell is bash and i use fedora 16.
would you please tell me that where i should edit (where is .profile and .login)
thanks
you need to copy them from /etc to your home folder (/etc/login to /home/roms/.login and /etc/profile to /home/roms/.profile)
And then edit the copies in your home folder.
 
Old 07-20-2013, 04:51 AM   #3
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
dear
i check /etc there are not .profile and .login. there are some files such as zlogin, profile (with out dot),
but i have .bash_profile in home directory.
actually in roms manual say that
Quote:
to provide the location for the NetCDF files (and optional HDF5 library). One is by editing the corresponding lines in your system-compiler file. Another way is through the Unix environment variables. If you are always going to be using the same compiler on each system, you can edit your .profile or .login files to globally set them one way is through the Unix environment variables . Here is an example for ksh/bash:
Quote:
export NETCDF_INCDIR=/usr/local/netcdf4/include
export NETCDF_LIBDIR=/usr/local/netcdf4/lib
export HDF5_LIBDIR=/usr/local/hdf5/lib
now i am not sure that i should add these path ro ./bashrs or ./bash_profile or ..

Last edited by fereshteh; 07-20-2013 at 05:13 AM.
 
Old 07-21-2013, 05:06 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The .profile and .login files are for older versions of the Bourne shell. IIRC, bash will still read them for compatibility reasons, but the "new way" with bash is to source ~/.bash_profile for login shells and ~/.bashrc for non-login shells. What I like to do is just have my .bash_profile source my .bashrc, so I get the same behavior for both login and non-login shells.

You can put the export statements to .bashrc and then have .bash_profile source .bashrc, as I like to do, and it will do what you want.

You should probably check out the bash documentation for more information about shell start-up.
 
Old 07-22-2013, 03:16 AM   #5
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
thank so much for your good reply

Last edited by fereshteh; 07-22-2013 at 03:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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




All times are GMT -5. The time now is 02:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration