Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-01-2013, 10:22 AM   #1
Registered: Oct 2012
Posts: 559

Rep: Reputation: Disabled
find the bashrc file

Where can I find the bashrc file? I looked under the etc file, but could not located it there.
Old 02-01-2013, 10:34 AM   #2
Senior Member
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,862
Blog Entries: 36

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
man bash
Use SHIFT+G to scroll to bottom of the page and look at FILES. You'll also learn more about how bash loads the bashrc if you read the INVOCATION section of the bash man page.

Helpful shortcuts for man pages...
  • k and j go up and down one line.
  • Ctrl+u and Ctrl+d go up and down half a page
  • / search forward for text
  • ? search backward for text
  • n find next occurrence of searched word
  • N find previous occurrence of searched word
  • g go to top of document
  • G go to bottom of document
  • q quit man page

To learn more about the manual pages execute "man man". I point you to the man pages because you didn't provide which distro you're using and locations sometimes change for certain configuration files. Look at the documentation for your distro on the location of configuration files.


Last edited by sag47; 02-01-2013 at 11:14 AM.
Old 02-01-2013, 10:42 AM   #3
Registered: Oct 2012
Posts: 559

Original Poster
Rep: Reputation: Disabled
thanks for the shortcuts for the man pages! that would have been nice to know about! there is so much there, and so much to learn!
Old 02-01-2013, 02:00 PM   #4
Registered: Dec 2011
Location: Columbus, OH
Distribution: Slackware 13.37
Posts: 38

Rep: Reputation: 0
Hello sniper8752, another place you could look for bashrc file. try looking for it in your home directory.

 ls -a /home/some_user/
Old 02-01-2013, 03:16 PM   #5
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,589

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
the "user" bashrc is a hidden DOT file

the system file IS in /etc
but might be under a slightly different name
On Opensuse12.2 it is called "bash.bashrc"
Old 02-01-2013, 03:23 PM   #6
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 22, MX 21 Fluxbox
Posts: 6,851
Blog Entries: 21

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Another way if you have locate installed is

~$ locate .bashrc
Old 02-01-2013, 09:03 PM   #7
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Generally these shell initialization files are found under:-
~$ cd /etc/skel
~$ ls -la
Moreover, you can copy it from some other user's account, and then change ownership to your account/group of your copy.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't find .bashrc in slackware ngan_yine Slackware 12 12-11-2019 09:50 AM
Help on Homework... Cant find .bashrc maravillasc Linux - Newbie 11 10-17-2005 09:39 PM
making alias, can't find .bashrc file djgerbavore Slackware 10 07-23-2004 08:23 AM
where could i find the file bashrc Paxmaster Linux - Software 4 07-15-2004 01:47 PM
HELP !!!can't find my .bashrc deadhead Slackware 4 11-03-2003 11:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration