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 10-17-2003, 05:18 PM   #1
n3wb1e
LQ Newbie
 
Registered: Mar 2003
Location: Slovenia
Distribution: Red Hat X
Posts: 23

Rep: Reputation: 15
PATH problems.. please help


Hello

I have big problem

I was playing with PATHs.. i just type PATH= in shell
But now.. dont work any PATH because when i type ps, ls and other commands.. linux cant find them.. i must ruin them in /bin

for example

[root@localhost etc] ls
-bash: ls: No such file or directory

How can i fix that? how can i edit PATHs anyway?

PLEASE HELP ME!!

thank you very much!!!
 
Old 10-17-2003, 05:27 PM   #2
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
type

PATH="/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin"

and you'll get it back.
 
Old 10-17-2003, 05:28 PM   #3
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
What is the output of the command '/usrbin/echo $PATH'?

It sounds to me like you may have altered your $PATH variable value in such a way that it now points to nothing. Unless you altered one of your login files (.login, .bashrc, .profile, etc.), this should fix itself if you log out and then log back in.

To edit your path to include a bin directory in your /home directory for example, you would enter the command 'PATH=$PATH:/home/yourlogin/bin'

If this doesn't work for you, let us know.
 
Old 10-17-2003, 05:29 PM   #4
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Uh, that should have been "/usr/bin/echo $PATH" Sorry.
 
Old 10-17-2003, 10:15 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Quote:
how can i edit PATHs anyway?
For example: to add /home/paul/programs to your PATH

PATH=$PATH:/home/paul/programs

export PATH

and to check PATH's

echo $PATH
 
  


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
set path problems boydasilva Linux - Newbie 3 12-09-2004 05:28 PM
xmkmf and path problems epoo Linux - Software 0 01-17-2004 05:13 PM
Some problems regarding path and X Peppe Linux - Newbie 1 10-23-2003 01:20 PM
Full Path problems chedmaster Linux - Newbie 1 06-26-2003 10:24 AM
Problems with $PATH hagbardc Linux - General 2 04-22-2003 01:50 PM

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

All times are GMT -5. The time now is 12:50 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