home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / coherent / 6717 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.os.coherent
  2. 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
  3. From: messina@netcom.com (Tony Porczyk)
  4. Subject: Re: getting an ls alias to work in super-user shells?
  5. Message-ID: <1993Jan10.000132.13035@netcom.com>
  6. Keywords: alias shell superuser
  7. Organization: Messina Software
  8. References: <93010913505@erato.iowa-city.ia.us>
  9. Date: Sun, 10 Jan 1993 00:01:32 GMT
  10. Lines: 23
  11.  
  12. jdb@erato.iowa-city.ia.us (John D. Boggs) writes:
  13.  
  14. >I have an alias set up in my $HOME directory to make "ls" always
  15. >"ls -C".  This is great, because now I don't have to watch everything
  16. >scroll off the screen!
  17.  
  18. Just to be on the safe side, I would recommend that you change your
  19. alias to ls='/bin/ls -C'.  It's a good practice not to risk looping
  20. your alias.
  21.  
  22. >But, woe is me!  I make liberal use of "su" to take care of administration
  23. >tasks on my system (bin and news, mostly, FWIW), and when I'm su'd ls
  24. >reverts right back to its default left screen sail-everything-by-you
  25. >mode.
  26. >Can I do anything to make "ls" *always* be "ls -C"?  I did try using a
  27. >shell script in /usr/local/bin, which I've placed ahead of /usr/bin in my
  28. >path, but that was *slow*.
  29.  
  30. You may change your root shell to ksh and use global alias file for all
  31. users on the system.
  32.  
  33. t.
  34.  
  35.