Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 07-04-2008, 04:01 AM   #1
glimpse
Registered User
 
Join Date: Jul 2008
Posts: 2
Question Cannot run "ls" from command-line anymore

When trying to run ls from the command-line i get this error:

Code:
glimpsed:~ glimpse$ ls
-bash: /sw/bin/ls: No such file or directory
Anyone has any idea what this is all about? I think that it has something to do with the fact that I recently uninstalled Fink on my Leopard machine... But don't know what exactly should I do to fix it.

Any help appreciated.
glimpse is offline   Reply With Quote
Old 07-04-2008, 06:59 AM   #2
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,293
It looks like you might have an alias set up for 'ls' and this alias refers to '/sw/bin/ls'.

Look for this alias in your shell config files ("dot files") - see this Unix FAQ
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 07-04-2008, 08:35 AM   #3
glimpse
Registered User
 
Join Date: Jul 2008
Posts: 2
10x

As it seems Fink somehow made an alias to '/sw/bin/ls' as you've said right before I uninstalled it. After editing the shell profile and deleting that alias I managed to get it working again .

10x
glimpse is offline   Reply With Quote
Reply

Tags
cli, command-line, error, fink

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:08 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.