Results 1 to 4 of 4

Thread: What is Bash_profile or .Bashrc?

  1. #1
    Join Date
    Oct 2010
    Posts
    61

    What is Bash_profile or .Bashrc?

    I am totally newbie to Linux operating system and I want to know something abiut this operating system as I have just installed the Linux on my machine but does not have much idea about it. I am just asking about Bash_profile or .Bashrc that works on Linux operating system. Can you guys give me proper information about this file?

  2. #2
    Join Date
    May 2008
    Posts
    2,680

    Re: What is Bash_profile or .Bashrc?

    file. bashrc is located in the directory of the user, for example, Paul and root:
    -> / Home / paul / .bashrc
    -> / Root / .bashrc
    It is normal not to see the file on Unix, files starting with a dot (.) Are hidden, to see them with a 'ls':
    Code:
      ls-a
    For AIX, bash is not the default shell. I think it's ksh shell so you should find one. Kshrc logically the same location as previously.

  3. #3
    Join Date
    Nov 2009
    Posts
    1,035

    Re: What is Bash_profile or .Bashrc?

    It is writing a file. Basrhc ideal with all functions and all the aliases that you seem indispensable. I begin with a minimum and some things I've already written and then I'll add your name to your parties as and comments. Small note on. Bashrc: the file ~ /. Bashrc is read by bash when it starts in interactive mode (basically every new graphics terminal and each time you type the bash command without parameters). When connecting to a machine (console or ssh not), the shell is started as a login and it reads. Bash_profile instead.

  4. #4
    Join Date
    Nov 2009
    Posts
    1,269

    Re: What is Bash_profile or .Bashrc?

    To have a common environment in all cases, I advise you to add the following lines in your. Bash_profile
    Code:
     if [-f ~ /. bashrc]; Then
         .  ~ /. Bashrc
     fi
    And if you're in a script or a bash-c and would like that. Bashrc is taken into account using the-i option
    Code:
     $ Bash-i-c "ll"
    Note that if you want to have these lines available to all users of the system, write them to / etc / bash.bashrc. Also note that debian offers example of putting all the aliases in a separate file:. Bash_aliases or .Bashrc

Similar Threads

  1. Need help to edit .bashrc files
    By Talaketu2 in forum Operating Systems
    Replies: 5
    Last Post: 13-11-2010, 06:03 AM

Tags for this Thread

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
  •  
Page generated in 1,751,078,342.30864 seconds with 16 queries