|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
macrumors newbie
Join Date: Nov 2009
Location: Hawaii
|
-bash: alias ls: not found
I want to make some simple aliases for my terminal shell and I keep getting this error:
-bash: alias ls: not found $ alias $ alias ll -bash: alias: ll: not found $ alias ll 'ls -lrt' -bash: alias: ll: not found -bash: alias: ls -lrt: not found how do you actually use alias? |
|
|
|
|
|
#2 |
|
macrumors 68030
Join Date: Aug 2005
|
Code:
alias ll='ls -la' |
|
|
|
|
|
#3 |
|
macrumors 65816
Join Date: Dec 2008
Location: Northern California
|
I have these lines in my .bash_profile file:
alias x="exit" alias l="ls -ahl" alias c="clear" alias less="less -cemiq" alias k="kill -9 %1" Those aliases come in handy. S-
__________________
Mac Pro: 8-core 2.8 GHz, 10GB RAM, Mac OS X 10.6.1; iPhone 3G S⃣ 32GB |
|
|
|
| sidewinder |
| View Public Profile |
| Find More Posts by sidewinder |
|
|
#4 |
|
Thread Starter
macrumors newbie
Join Date: Nov 2009
Location: Hawaii
|
-bash: alias
Ah! Thanks. The = sign is what was eluding me.
The the sample .bash_profile will be helpful Now the alias I really wanted: alias rgrep="find . | xargs %1" Thanks sidewinder and belvdr Last edited by IslandRay : Nov 14, 2009 at 05:03 AM. |
|
|
|
|
|
#5 |
|
macrumors regular
Join Date: Aug 2009
|
|
|
|
|
|
|
#6 | |
|
macrumors 65816
Join Date: Dec 2008
Location: Northern California
|
Quote:
I am well aware of those commands. You work in the terminal the way you want and I will work the way I want. I have been using Unix terminals in some form since 1981. I might actually have a clue..... S-
__________________
Mac Pro: 8-core 2.8 GHz, 10GB RAM, Mac OS X 10.6.1; iPhone 3G S⃣ 32GB |
|
|
|
|
| sidewinder |
| View Public Profile |
| Find More Posts by sidewinder |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|