LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2006, 04:51 PM   #1
mocke
LQ Newbie
 
Registered: May 2006
Distribution: Slacware 10.2
Posts: 6

Rep: Reputation: 0
problems with .bashrc


I try to install OpenFOAM. and I am asked to add a command to the "home/.bashrc" file but I cant find it.
Do I need to run any program to generate this file?

I am using Slacware 10.2
 
Old 05-12-2006, 04:56 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You can just create it yourself. Typically, it just contains:

Code:
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
 
Old 05-12-2006, 04:56 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
vi? It's just a text file with different options like aliases, fancy prompts, etc. You might be able to get away with just touch /home/user/.bashrc
 
Old 05-12-2006, 05:12 PM   #4
mocke
LQ Newbie
 
Registered: May 2006
Distribution: Slacware 10.2
Posts: 6

Original Poster
Rep: Reputation: 0
Ok but its not working

root@pc1:/home# /home/bashrc
-bash: /home/bashrc: Permission denied

?????
my new bashrc
/////////////////////////////////
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
. $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc
/////////////////////////////////////

?????????????????
 
Old 05-12-2006, 05:19 PM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The file is called ".bashrc" - the name starts with a period.

If you want to invoke it manually, since it sets environment variables, the format is:

. .bashrc

(period, space, period bashrc)
 
Old 05-12-2006, 05:21 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
By the way, files that start with a period do not appear in a "normal" ls output; you must use the '-a' option. For example:

ls -altr
 
Old 05-12-2006, 05:41 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Looks like you are creating the .bashrc in /home. What Is meant is the .bashrc file is in your home directory to get to it in a terminal session type ' cd ~ '. Now once there to see if the file exist type ' ls -a '.

Brian1
 
  


Reply



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
where is bashrc ? Kanaflloric Slackware 12 10-06-2007 02:47 PM
.bashrc ? Longinus Linux - Newbie 2 03-27-2004 11:50 AM
.bashrc help shanenin Linux - Software 4 02-14-2004 06:17 PM
.bashrc f0rmula Linux - Software 24 12-28-2003 09:43 PM
.bashrc help envirodug Linux - Newbie 2 06-14-2001 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:28 AM.

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
Open Source Consulting | Domain Registration