Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mosey

macrumors member
Original poster
Aug 30, 2007
45
0
I'm using Terminal to run UNIX commands. I used to use UNIX a lot on Sun and HP workstations, but it's been about 15 years, so I'm pretty rusty. I seem to remember that I could set aliases, like so:

alias c clear

But, it comes back with:

-bash: alias: c: not found
-bash: alias: clear: not found

I've tried:

alias c 'clear'
alias c "clear"

but always get the same result.

What am I doing wrong?
 
You're just missing the = sign. It would go something like this:

alias c='clear'

EDIT: And so as to avoid any confusion, this has nothing to do with the term that the Finder uses for shortcuts.

Yup, = did the trick! Thanks for the help!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.