home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.coherent
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcom.com!messina
- From: messina@netcom.com (Tony Porczyk)
- Subject: Re: getting an ls alias to work in super-user shells?
- Message-ID: <1993Jan10.000132.13035@netcom.com>
- Keywords: alias shell superuser
- Organization: Messina Software
- References: <93010913505@erato.iowa-city.ia.us>
- Date: Sun, 10 Jan 1993 00:01:32 GMT
- Lines: 23
-
- jdb@erato.iowa-city.ia.us (John D. Boggs) writes:
-
- >I have an alias set up in my $HOME directory to make "ls" always
- >"ls -C". This is great, because now I don't have to watch everything
- >scroll off the screen!
-
- Just to be on the safe side, I would recommend that you change your
- alias to ls='/bin/ls -C'. It's a good practice not to risk looping
- your alias.
-
- >But, woe is me! I make liberal use of "su" to take care of administration
- >tasks on my system (bin and news, mostly, FWIW), and when I'm su'd ls
- >reverts right back to its default left screen sail-everything-by-you
- >mode.
- >Can I do anything to make "ls" *always* be "ls -C"? I did try using a
- >shell script in /usr/local/bin, which I've placed ahead of /usr/bin in my
- >path, but that was *slow*.
-
- You may change your root shell to ksh and use global alias file for all
- users on the system.
-
- t.
-
-