LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-15-2001, 11:49 PM   #1
webboss
Member
 
Registered: Feb 2001
Location: Badlapur, INDIA
Distribution: debian, Slackware & Small Distros
Posts: 83

Rep: Reputation: 15
Question


I have read the forum for my question but could not find ".bash_profile" file in /etc directory.
Instead there is a bashrc file. But it does not seem to be for path setting.

can anybody please let me know in detail how do I set the path I wish permanently for myself as well as systemwide.

Thanks in advance.
 
Old 03-16-2001, 03:13 AM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
That is probably the main file which is used as the path for all users. But I always thought /etc/profile was the file you need to edit. If there isn't one then you may be able to create one. If you want to edit your personal path then there should be a file in your home directory called .bashrc which you could edit.
 
Old 03-17-2001, 05:29 PM   #3
bretthoward
Member
 
Registered: Mar 2001
Location: Klamath Falls
Posts: 62

Rep: Reputation: 15
From my experience you can look in your home folder and edit a file called /<user home dir>/.bash_profile you can change it in .bashrc in the home folder too and the changes will take place because they both are run when a user logs in. There is probably one in /etc that you can edit too but I don't know it off the top of my head.

The other thing you might consider is going into /etc/skel and editing the .bash_profile in there and maybe even the .bash_logout... The /etc/skel folder is a skeleton of what a new users directory will look like. So if you make a change there and then create a new user they will get all of the changes that are there in their home folder automatically. as in I put a symlink in there called songs which mapped to /songs so any of the users that I have given access to my system automatically have a symlink to my songs folder. Understand? If not ask for more clairification and I'll explain better.
 
  


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
Setting the path powerlifter450 Linux - Software 18 07-05-2006 10:46 AM
Setting the path.... joel112 Slackware 5 08-28-2003 01:27 PM
Setting the path Milkman00 Linux - General 2 07-26-2002 08:44 AM
setting PATH tda Linux - Newbie 1 04-29-2002 12:54 PM
Setting up PATH Sonny Linux - Newbie 4 01-28-2002 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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