RE: profile

From: Michael Velez (mikev777_at_hotmail.com)
Date: 05/27/05

  • Next message: Mike Wooding: "RE: Large number of files in single directory"
    To: "'General Red Hat Linux discussion list'" <redhat-list@redhat.com>
    Date: Fri, 27 May 2005 15:59:04 -0400
    
    

     

    > -----Original Message-----
    > From: redhat-list-bounces@redhat.com
    > [mailto:redhat-list-bounces@redhat.com] On Behalf Of Muhammad Rizwan
    > Sent: Friday, May 27, 2005 5:12 AM
    > To: General Red Hat Linux discussion list
    > Subject: profile
    >
    >
    > Hello
    >
    > When Linux starts, which profile it loads.
    >
    > Any idea?
    >
    > Thanks!
    >
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    >

    Profiles read are dependent upon the shell you execute, whether the shell is
    a login shell or interactive.

    The man page for each shell should have what you need. If you're running
    the bash shell, type:

    man bash

    and search for the INVOCATION section

    For an interactive bash login shell (therefore what you start when you log
    in), profiles are read in the following order:

    /etc/profile
    ~/.bash_profile (which should call up ~/.bashrc)
    ~/.bash_login
    ~/.profile

    if the files exist.

    Hope this helps,
    Michael

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Mike Wooding: "RE: Large number of files in single directory"

    Relevant Pages

    • Re: [SLE] Bash Files
      ... and .profile, with .profile executing once at logon an .bashrc running ... every time you open a new shell. ... From 'man bash' ... executes commands from the file /etc/profile, ...
      (SuSE)
    • Re: xterm and mouse movement
      ... i can put bash in my .profile. ... news: 873c967nwh.fsf@limey.hpcc.uh.edu... ... > Sounds like you want to change your shell to bash, ...
      (comp.sys.sun.admin)
    • Re: Random psh stuff.
      ... The PowerShell model supports the concept of multiple shells. ... the PowerShell.exe console application is the main shell. ... you would use the $profile variable. ... Current user profile is loaded from "<My ...
      (microsoft.public.windows.server.scripting)
    • Re: Add to $PATH how?
      ... are sourced at the start of a "login" shell. ... the idea is that the .profile holds things that need doing exactly ... processes this need only happen once, and fresh interactive shells do ...
      (Fedora)
    • Re: how to make colour prompts for pdksh
      ... The .profile is always gets parsed (both in a login and a non-login ... your login shell, so your prompts will still be set, etc. ... your aliases would be there too. ... You need to export ENV. ...
      (Debian-User)