LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2004, 01:57 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
suse profile files


Hi i am looking for the ~./bash_profile in my suse 9 distro. I can;t find it. I want to add some commands to my profile file and command aliases..
Where is that file located?
 
Old 04-28-2004, 02:16 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
You misplaced the dot before the filename. If it exists, it is in your home directory.
~/.bash_profile
The dot makes it hidden to the ls command unless you use the -a option.
 
Old 04-28-2004, 02:27 AM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
xmm...

thx but look at the command


locate .bash_profile
/router/cdrom/toolkit-1.6-1/src/sys-xkde-basilisk-1.0-BETA-4-A/etc/skel/.bash_profile
/router/cdrom/toolkit-1.6-1/src/sys-xkde-basilisk-1.0-BETA-4-A/etc/skel/.bash_profile.rpmnew

only these two files......which they belongs to a program installed...
I thins that Suse keeps the information of the bash_profile in to an other file
 
Old 04-28-2004, 01:18 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,511

Rep: Reputation: 46
Isn't it .bashrc?
Mine is located at $HOME.
 
Old 04-28-2004, 08:44 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
In SuSE, in your home directory, there is a hidden file called .bashrc. That's the place to add commands and aliases for a user. If you want to make them available to all users, then add them to /etc/bash.bashrc. Just remember, any update to bash will overwrite /etc/bash.bashrc and you will have to do it again. The best way, add the commands/aliases to each user's ~/.bashrc.
 
Old 04-29-2004, 01:38 AM   #6
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
axa

thx.... That's it u saved me
 
Old 04-30-2004, 07:14 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
There is a difference between .bashrc and .bash_profile.
.bash_profile is executed when you first log in.
.bashrc is executed everytime you open a new console using the bash shell.

If you want to add a directory to the PATH environment variable, do it in .bash_profile, so it isn't run more than once.

the .bash_profile and .bashrc are bash files, so it shouldn't matter which distro you are using. You can create one if you want to.

SUSE probably has startup files defined in the /etc directory for global bash setup, but leave it to you to make user changes in ~/.bash_profile and ~/.bashrc.

On my system, ~/.bash_rc just sources ~/.bashrc. I did add a line myself.

info bash will supply all of this information.
 
Old 05-01-2004, 07:38 AM   #8
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
thx

thc
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up my Suse 9.1 profile aaronfg Linux - Newbie 5 12-07-2004 05:13 PM
problem with .profile in SuSE 9.1 ihandler Linux - General 0 10-15-2004 12:11 AM
.bashrc or .profile for root in SuSE jimsee Linux - General 3 11-15-2003 03:36 PM
question on paths and profile files bignester Linux - General 3 08-07-2003 03:54 PM
Profile mess-up under SuSe 8.2 xeinsane Linux - General 2 06-18-2003 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:37 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
Open Source Consulting | Domain Registration