Review your favorite Linux distribution.
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 08-14-2004, 06:55 AM   #1
Registered: Aug 2004
Location: India
Posts: 54

Rep: Reputation: 15
script doubts

What does the following code do....

if [ -f ~/.bashrc ]; then
. ~/.bashrc
Old 08-14-2004, 07:00 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It checks for the existance of the file ".bashrc" in your home directory and if it exists it sources the code from the script into your current shell.


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
Doubts in c rajesh_b Programming 2 06-06-2005 09:54 PM
NAT doubts vermaamitabh Linux - Networking 2 10-29-2004 09:11 AM
Makefile doubts varala_kanth Linux - Software 0 03-25-2004 10:15 PM
slackware doubts ;-| sridharinfinity Slackware 6 10-25-2003 01:18 PM
cd playing doubts! zaba Linux - Software 0 10-05-2003 09:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration