|
|
#1 |
|
Prospect
Join Date: Jul 2006
Posts: 19
|
Terminal ls command does not work
Hello,
when I start my Terminal and I type ls -a, I am getting the following error message: -bash: list: command not found any idea on how I can get my bash back! Thanks |
|
|
|
|
|
#2 |
|
Triple-A Player
Join Date: Apr 2002
Posts: 127
|
output of echo $PATH please
and you might wanna check the content of your ~/.profile for weird aliases Last edited by fenrack; 07-13-2006 at 11:17 AM. |
|
|
|
|
|
#3 |
|
Prospect
Join Date: Jul 2006
Posts: 19
|
echo $PATH returns:
/opt/local/bin:/opt/local/sbin:/usr/local/Trolltech/Qt-4.1.4/bin:$ |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,560
|
Ouch. Your path is screwed up. Check your bash configuration files--the path above is very inadequate. If you need help with understanding how to properly set your path, check the excellent Unix 101 here at MacOSXHints, written by hayne, or else Mac OS X Unix Tutorial.
Trevor
__________________
How to ask questions the smart way |
|
|
|
|
|
#5 |
|
Prospect
Join Date: Jul 2006
Posts: 19
|
Thanks for the link; I am going to study it seriously but I need to edit the .profile file I screwed up and nano does not work; how can I get my hand on those files?
Thanks |
|
|
|
|
|
#6 |
|
Triple-A Player
Join Date: Jan 2002
Location: Phoenixville, PA
Posts: 121
|
You can edit your .profile with TextEdit; or you can explicitly type the path to nano:
/usr/bin/nano .profile
__________________
Knock Knock. |
|
|
|
|
|
#7 |
|
Prospect
Join Date: Jul 2006
Posts: 19
|
Thank you very much; I was able to clean up my system and Terminal is back with full functionality; I guess I need to study the link now.
Thanks to all! |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|