Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-06-2003, 03:26 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 8

Rep: Reputation: 0
Question how do i set global prefs for bash

I've recently installed slackware 8.1 on a pIII 500 w/ 128 MB and for the most part everything's been going pretty well.

The problem i'm having is everytime i log in i have to do
$export PATH=$PATH:/sbin
The docs i've found on bash indicate that i should be able to edit .bashrc to add /sbin to PATH, but i can't find that file (and yes, i've looked for hidden files). I've also read that it could also be called .profile, but i can't find that either. I've looked in the home directory and the /root, but no go.

Does anyone have any ideas?
Old 03-06-2003, 03:34 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
If you just want it for one use, go ahead and create your own .bashrc file. If you want it for everyone, edit /etc/profile and add it to the path line, or at the bottom.

Old 03-06-2003, 05:23 PM   #3
LQ Newbie
Registered: Mar 2003
Posts: 8

Original Poster
Rep: Reputation: 0
That was it. Thanks!


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
Tab width in Bash - how do I set it benr77 Linux - General 8 12-04-2012 10:53 AM
How to set up a global address book using LDAP? coolamit78 Linux - Networking 1 04-04-2005 01:42 AM
'Screen' ignores bash/emacs prefs! Why? stutterbug Red Hat 0 01-20-2005 06:57 AM
Set Global variable for daemon without login RX100 Linux - Software 3 10-08-2004 08:50 AM
How make a script in order to set global alias? RickHunter_Ve Linux - Newbie 7 06-08-2004 02:13 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:03 AM.

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