On Thursday 18 June 2009 22:35:37 Dick Gevers wrote:
> 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
>
Thanks. I'm trying this - putting it in ~/.bashrc. Don't know whether it
needs it, but I ran newaliases anyway. Then I tried 'yus' but got 'command
not found'. What have I missed?
Anne
--
New to KDE4? - get help from
http://userbase.kde.orgJust found a cool new feature? Add it to UserBase