LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-20-2008, 11:49 AM   #1
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Rep: Reputation: 15
.bash_logout .bash_profile .bashrc


So what are these files hidden or something. How the heck am I supposed to understand folks when they are telling me these file are in the user directory and I don't see any files in the user dir. I do ls and dir and nothing! Then I typed in vi .bash_profile to create the file only to find it has stuff in it. Oh how I want to bash something now. Also I guess the "." is part of the file name???????? I would not have expected it to be but it must be, hu??? Keep in mind I am a newbie and I'm posting in the newbie forum because I don't get this stuff.
 
Old 02-20-2008, 12:02 PM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Preliminary Explanation

To find "dotted" files -- .bashrc, .bash_profile, and so on, you'll want to tack on -a to ls (ls -a .bash*), and you'll see a directory of these files. ls is the equivalent of the Windows/DOS dir command.

I believe Linux uses dot files, so the average user won't bother with them. In other words, the files need to stay out of the way. Using a dot file is one of the ways to do that.

The .bash* files are login and environment scripts, and there are a lot of rules about what gets run, depending on whether the files are present or not. If you are strictly considered about running a program or configuring your environment upon login, modify .bash_profile. I tend to put most of my environment changes in .bashrc, because I want any other program I run to pick up the environment defined in .bashrc.
 
Old 02-20-2008, 01:12 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
If you are using KDE, in konqueror, when looking at your home folder, go to the View menu, and click on 'Show hidden files".

In a terminal, ls -a (list all) will show you hidden files.
 
  


Reply


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
bashrc and .bash_profile happy78 Programming 5 10-19-2005 05:26 PM
.bashrc .bash_profile Soulful93 Slackware 4 05-03-2005 04:02 AM
~/.bashrc, ~/.bash_profile Sinope Linux - Newbie 6 08-17-2004 03:40 AM
.bashrc or .bash_profile? statmobile Linux - Newbie 1 02-04-2004 10:08 PM
.bashrc vs .bash_profile xor3 Linux - Newbie 1 08-16-2003 01:52 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration