LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-11-2007, 07:03 AM   #1
jborn
Member
 
Registered: Oct 2005
Distribution: FC 8
Posts: 53

Rep: Reputation: 15
Setting up profile for FC6


I've always modified the .profile for my installations so that when I'm using a user id in the terminal I have some aliases setup and set -o vi for the command buffer. I'd like to set that up for the current user and root on a FC6 box. I don't know if its a different shell and should be setup in a different file, but everything I try doesn't work.

I would also like to modify a template profile, so that when I create a new user it has this information attached to it also.
 
Old 01-11-2007, 11:01 AM   #2
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
As you may have guessed what file you use to set up a user profile has a direct correlation to the shell you are using. The default shell in Fedora is bash. Type echo $SHELL to see what shell you are using. The man page for bash has a section on Invocation that describes how it starts up. When starting up it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile. It will execute the first one it finds. Read the man page for a better description of this.

In Fedora they typically use .bash_profile to set up environment variables. They use .bashrc to set up aliases and functions. The default .bash_profile has a line that sources .bashrc to pull in the aliases and functions.

Bill
 
Old 01-11-2007, 12:41 PM   #3
jborn
Member
 
Registered: Oct 2005
Distribution: FC 8
Posts: 53

Original Poster
Rep: Reputation: 15
Didn't even have to go to the link you provided. The .bash_profile was what I was looking for.. Thanks many times over.
 
  


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
Problems with setting Wireless Testbed in FC6 kwlim27 Linux - Wireless Networking 0 11-14-2006 03:05 AM
Copy root profile setting littleg Linux - Newbie 4 10-21-2006 04:28 AM
Setting your paths in .profile? merlingt1 Linux - Newbie 21 04-28-2006 05:55 AM
Setting the ICC Profile in a tiff file James_dean Programming 0 11-27-2005 02:11 AM
/etc/profile doesn't work for setting a global PATH ttilt Mandriva 2 04-15-2004 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:03 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