Results 1 to 3 of 3

Thread: profile and bashrc files

Hybrid View

  1. #1

    profile and bashrc files

    I have a Unix book that says the shell checks for a startup file named .profile in your home directory each time you log in. *You can create one to customize your Unix environment. *However, I tried this on my RH box and it didn't work. *I see a hidden file in my home directory named .bashrc. *Now is this equivalent to the .profile startup file where I can customize my user shell?

  2. #2

    Re: profile and bashrc files

    yeah. .profile and .bashrc are just lists of bash commands to run every time you start the shell. You can define aliases, or functions (functions are like aliases, but more robust), and environment variables. You can do other stuff too (anything you can do on the commandline), but that's the bulk of what you'd want to do, generally.

    If you want to use .profile, add "source ~/.profile" to the beginning of your .bashrc, then start making your .profile

  3. #3

    Re: profile and bashrc files

    AFAIR, .profile (or .bash_profile) is used for console logins, and .bashrc is used for xterm sessions (and other X shells). Most distros source .bashrc in .profile so that all the .bashrc settings are available in the console.

Similar Threads

  1. New WinXP Image Doesn't Backup Profile Files to Linux PDC
    By ovns in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 06-24-2010, 06:42 PM
  2. not run .profile
    By sabre in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 08-31-2006, 02:54 PM
  3. how to delete profile
    By elovkoff in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 07-21-2004, 01:57 AM
  4. Slackware .bashrc
    By shebang in forum Linux - General Topics
    Replies: 4
    Last Post: 03-29-2004, 04:31 AM
  5. BASHRC
    By vwgtiturbo in forum Linux Distros
    Replies: 1
    Last Post: 02-02-2004, 09:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •