Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Why am I getting "-bash: ‘alias: command not found" at the top of my Terminal when I launch it?

Everytime I launch Terminal now, this is what I see:


Last login: Tue May 15 14:23:07 on ttys001

-bash: ‘alias: command not found

-bash: ‘alias: command not found

-bash: ‘alias: command not found

haoyang-wangs-macbook-pro:~ haoyangwang$


What are those three lines that say "-bash: ‘alias: command not found"? And why are they there?

A little background, these might have possibly been caused by my recent meddling with Terminal. I was recently trying to "build" lua through some source files, I didn't really know what I was doing and this is very possibly the result of that. Any help would be greatly appreciated and help with clearing these processes from thrying to execute would be ideal, thanks in advance.


-yang

MacBook Pro, Mac OS X (10.7.3)

Posted on May 15, 2012 12:39 PM

Reply
Question marked as Best reply

Posted on May 15, 2012 12:42 PM

I think your bash config file has had aliases added that are no longer defined anywhere.

9 replies

May 15, 2012 12:46 PM in response to yangwang

a bash file is a set of commands the system uses to complete a task.

bash alias is how the system locates commands. The system normally has a set of commands already on file so all you need to do is type the command and the system will look in its file base to find the command. The error could be a missing file in terminal, the path to the normal locations was edited.

In terminal to start a command you would have to either be in the folder with the command or type out the address to the command like typing in a web address.


Im also having this problem in terminal along with a huge number of other problems.


I dont know what you were trying to do?

May 15, 2012 4:12 PM in response to yangwang

haoyang-wangs-macbook-pro:~ haoyangwang$ cat ~/.bash_profile

‘alias wget=”curl -O”‘

‘alias wget=”curl -O”‘

‘alias wget=”curl -O”‘

haoyang-wangs-macbook-pro:~ haoyangwang$


This is the result of running "cat ~/.bash_profile", and @Kappy ah that makes a lot of sense. Sorry for being a unix noob. So I guess a solution would be to delete such alias calls, right? How would I go about doing that? And thanks for the quick replies everyone, this is super helpful.

May 15, 2012 5:18 PM in response to yangwang

yangwang wrote:


haoyang-wangs-macbook-pro:~ haoyangwang$ cat ~/.bash_profile

‘alias wget=”curl -O”‘

‘alias wget=”curl -O”‘

‘alias wget=”curl -O”‘

haoyang-wangs-macbook-pro:~ haoyangwang$


This is the result of running "cat ~/.bash_profile", and @Kappy ah that makes a lot of sense. Sorry for being a unix noob. So I guess a solution would be to delete such alias calls, right? How would I go about doing that? And thanks for the quick replies everyone, this is super helpful.

If you want wget, download and install the real thing: http://www.gnu.org/software/wget/

Then just delete your .bash_profile file.


Sitesucker is a nice, easy-to-use GUI tool that works great too.

Why am I getting "-bash: ‘alias: command not found" at the top of my Terminal when I launch it?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.