Re: Aliasing (was Re: tmpwatch problem)
On Thu, 18 Jun 2009 09:28:11 +0100, Anne Wilson wrote about Aliasing (was
Re: [Expert] tmpwatch problem):
>> For example:
>>
>> alias broom='/usr/sbin/tmpwatch --mtime --verbose 168 /home/anne/.tmp'
>>
>Can that be done to add parameters? I mean, for instance, on the F10
>netbook, I would like to alias 'yum update' to 'yum update --skip-broken'.
Sure: e.g. alias yus='yum update --skip-broken'.
Obviously, if you run it with sudo you'd have to include 'sudo' in front,
and if run as root, you could either put your alias as before in ~/.bashrc
(which is then same as /root/.bashrc), or in any file in /etc/profile.d .
My root aliases are in /etc/profile.d/z_<boxname>.sh
Cheers,
=Dick Gevers=