On Mon, Mar 19, 2012 at 08:08, rcb <r...@beco.cc> wrote: > 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 > ~/.bashrc, ~/.bash_alias, /etc/bash.bashrc or /etc/profile. Nor the > command 'alias' give me any 'dir' alias.
Well, I believe dir is built into modern versions of GNU coreutils, rather than being an alias or something: https://www.gnu.org/software/coreutils/manual/html_node/dir-invocation.html#dir-invocation But you can still override it. You could alias it to a shell script that prints something or make it a function. Do it in /etc/ and it affects everyone of course. Cheers, Kelly Clowers -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAFoWM=_cozhbmozp3gsr_xedbz0rbrex9549mwuxhgcqf8j...@mail.gmail.com