Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is in the $PATH?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Fantik
n00b
n00b


Joined: 11 Oct 2002
Posts: 35

PostPosted: Wed Oct 16, 2002 12:58 am    Post subject: What is in the $PATH? Reply with quote

I messed up while trying to add somethigng to my $PATH,

now when I echo $PATH, it tells me

/usr/X11R6/bin:/etc/profile/:/etc/profile:

this is really F'd because when I try to do an "ls" it says "bash: ls: command not found"

1. how do I clean out the $PATH and make a fresh start.

2. what should be in the $PATH to start with..
Back to top
View user's profile Send private message
Curious
Bodhisattva
Bodhisattva


Joined: 13 May 2002
Posts: 395
Location: Sydney, Australia

PostPosted: Wed Oct 16, 2002 2:13 am    Post subject: Reply with quote

Where did you make the changes to your path? If you just did it in the shell with "export", just log out and log in again to get a new one. I think "source /etc/profile" should help you out.

As to what's supposed to be in your path, the defaults should be fine, unless you've got something special in mind. Normal users usually have /bin/, /usr/bin/, /usr/local/bin/, $HOME/bin/. Root will also have sbin, and probably not the /usr/local stanza.

Does this help?

-- Curious
_________________
Are you down with the Hawk?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum