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 12-02-2006, 12:36 AM   #1
user52
Member
 
Registered: Nov 2006
Posts: 41

Rep: Reputation: 15
.profile or .bash_profile


hello sir,

what is .profile or .bash_profile
and i am using linux server so how can i know which linux user profile.


thanx
 
Old 12-02-2006, 02:40 AM   #2
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 53
Usually .profile or .bash_profile defines environmental setting for the user. It's usually located in the home directory of the user. It's where each users can set up alias, configuration paths etc...

I hope that helped.
 
Old 12-02-2006, 03:15 AM   #3
user52
Member
 
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
thank for ur reply
but where i can see those profile. means where is located....

?

plz. reply

thanx
 
Old 12-02-2006, 03:40 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You've already been told where the files are located - in the user's home directory.
 
Old 12-02-2006, 03:40 AM   #5
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 53
if the user name of the person is "johnny" then it would be (very likely) under:
/home/johnny/.bash_profile or /home/johnny/.profile

Note: there is also a system-generated default profile at /etc/profile, but only admin is allowed to touch that file.
 
Old 12-02-2006, 03:55 AM   #6
user52
Member
 
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
thank you sir for ur reply..
but when i check on /home/oracle there is not .profile or .bash_profile files exists.
so where i can see plz sir help....

and i am check as oracle user not root user etc/profile just open and close not edit. so sir there is no problem.. plz. sir reply....
 
Old 12-02-2006, 06:24 AM   #7
bhert
Member
 
Registered: May 2006
Distribution: OpenSUSE 10.3 Kubuntu Hardy Heron
Posts: 268

Rep: Reputation: 30
File names that start with a period are hidden. The only way you will see it is to type
Code:
ls -a
in the terminal

-bhert
 
Old 12-02-2006, 12:31 PM   #8
eerok
Member
 
Registered: Nov 2005
Location: Canada
Distribution: Mint, Debian
Posts: 168

Rep: Reputation: 32
/etc/profile is for system-wide defaults; the file you likely want is ~/.bashrc
 
Old 12-02-2006, 12:48 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
~/.profile might also be run by a similar shell. ~/.bash_profile will only be run by bash. Check the info bash pages for information on which would be run. You probably want to use only one of them. A common usage is to define PATH and the aliases. ~/.bashrc isn't a good place to add to your PATH variable because it will be run again when you open a subshell. The .profile script is only run once when you log in.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bash_profile and /etc/profile not sourced? FogSwimmer Ubuntu 7 10-05-2006 06:45 AM
system profile vs user profile bonito SUSE / openSUSE 3 06-28-2006 02:02 PM
/etc/profile VERSUS /home/.bash_profile carbono Linux - Newbie 12 10-12-2005 10:23 AM
.profile & .bash_profile on $LFS cbates55 Linux - Distributions 1 01-02-2002 03:25 PM
profile, .bash_profile & ???? ChimpFace9000 Linux - General 1 07-05-2001 05:52 PM


All times are GMT -5. The time now is 06:42 AM.

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