dir is not ls

2012-03-19 Thread rcb
Dear Debian users, Some old systems insists you type 'ls' and do not provide an alias do 'dir'. I loved this behavior. How can I make debian squeeze honor 'ls' again, and print a funny message to those who try to type 'dir'? I've look for a clean way to disable 'dir', but found nothing on ~/.bas

Re: Re: Bash argument expanded inside alias

2012-03-15 Thread rcb
> From Chris Davies, Wed, 14 Mar 2012 20:36:43 + > And the function is trivial. Just pop it in your .bashrc >  muda() { local M="$1" D="$2"; find "${D:-.}" -mtime -"${M:-1}"; } > Why are you so reluctant to use functions? Even the bash man page says, > "For almost every purpose, aliases are sup

Re: Re: Bash argument expanded inside alias

2012-03-14 Thread rcb
On Tue 13 Mar 2012 15:49:52 +(+), Clive Standbridge wrote: > Oh I think I misunderstood the question. > On second thoughts, I think you probably meant to use an alias inside > a shell script, and to use the script's argument in the alias. In that > case, the problem would be shell paramete

RE: Unnecessary rebooting (was Re: Bash argument expanded inside alias)

2012-03-14 Thread rcb
> From: Chris Bannister , Date: Wed, 14 Mar 2012 > 18:00:24 +1300 > > [Please, don't top post in this mailing list] > > Just logout then log back in again, or even better, type: > "source .bashrc" at a command prompt. :) > -- > "Religion is excellent stuff for keeping common people quiet." >   --

Re: Bash argument expanded inside alias

2012-03-13 Thread rcb
> From: Camaleón > Date: Tue, 13 Mar 2012 18:06:11 + (UTC) > > > does not work to do what your intuition imagine what I want it to do? > It's not the alias but the command itself. > *** > alias muda='find . -name "*" -mtime $1' > *** > And pass the negative value "-n" as argument (e.g., "muda

Re: Bash argument expanded inside alias

2012-03-13 Thread rcb
Dear Clive, dear Tom, Thanks for your time! The solution: mudafct() { find . -name "*" -mtime -$1; } alias muda='mudafct' seems to works inside .bashrc file! (Just 'seems' because I did not reboot, just typed in a terminal and it worked great!) Thanks both, Beco. To: debian-user@lists.debi

Bash argument expanded inside alias

2012-03-13 Thread rcb
Dear Debian users, Anyone knows why this command: :~$ alias muda='find . -name "*" -mtime -$1' and all this variations I tried: :~$ alias muda='find . -name "*" -mmin -`echo $1`' :~$ alias muda='find . -name "*" -mmin `echo -$1`' :~$ alias muda='find . -name "*" -mmin $(echo -$1)' :~$ alias mud

Re: Mystery of journaled quotas

2012-03-10 Thread rcb
Dear Camelón, > From: Camaleón > Date: Sat, 10 Mar 2012 15:54:37 + (UTC) > > (...) > > But then, I got this error (1): > > $quotacheck -avugm -f > > quotacheck: WARNING - Quotafile //aquota.group was probably truncated. > > (...) > As per: > /usr/share/doc/quota/README.Debian > You have to

Re: Changing processor

2012-03-03 Thread rcb
>>From: Claudius Hubig : >>If you are still using the default kernel, i. e. did not recompile >>your own and threw out ‘unneeded’ options/modules, everything will be >>fine. Thanks Claudius. It is always better to ask "before" buy. I didn't recompile or anything. Just keep the system updated via s

Changing processor

2012-03-03 Thread rcb
Dear Debian users, First of all, I'd like to briefly introduce myself, as it is my first message. My name is Ruben (aka Beco), I'm a computer scientist, and I've being using linux since 1995 (Slackware-KDE, RedHat-KDE - because of RPM, Suse-KDE - because it recognize more hardware and I didnt li