TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:17715] Aliasing
Nick.T.Reinking@supervalu.com said:
> I always forget that I'm on Solaris, and I was wanting
> to alias 'ps aux' to 'ps -ef' - but I can't get anything to work.
>
> Any suggestions?
bash-specific solution:
IIRC, aliases can only be a single word. However, in bash, an alias ending
with a space has its arguments checked for aliases also - normally, only the
first word in checked. So...
alias ps='ps '
alias aux='-ef'
should do the trick.
--
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton
Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+
- References:
- Aliasing
- From: <Nick.T.Reinking@supervalu.com>